Results 1 to 2 of 2

Thread: Access the logged username and password

  1. #1
    lebuser Guest

    Default Access the logged username and password

    Hi, I will be clear as much as possible

    I have added a custom page where I connect to a database and import a large number of users and add them to sugar, now the all is working fine but in my page I am adding the username and password of the admin myself
    ( $soapclient->call( "login", ), and that is not good because in case the admin changes the password, it will not longer work. How can I access the logged user username and password ?

    thanks !

  2. #2
    davidboris's Avatar
    davidboris is offline Sugar Community Member
    Join Date
    May 2010

    Default Re: Access the logged username and password


    Why do you use soap to create users while you are already logged in into Sugar? If you are logged in into Sugar, you can simply do,
    PHP Code:
    $oUser = new User();
    $oUser->username = <from your file>;
    //... map all fields as you want
    I hope I haven't misjudged your requirement.
    Web :
    Twitter : @urdhvatech
    Email :
    Blog : Urdhva-Tech
    Skype : urdhvatech

    Our Premium Projects for SugarCRM:
    Premium theme for SugarCRM CE (Community Edition 6.5+ with 4 combinations, Black + Orange/Red/Green/Blue, bootstrap3 based)
    Duplicate detector to avoid duplicate data entry.
    Customer Self Service Portal for All Flavours.
    tagMe A complete tag management for SugarCRM.
    Meeting Map Reminder Meeting reminder with Gmap in Email

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 2011-11-16, 11:12 AM
  2. Username and Password
    By ggeiler in forum Help
    Replies: 2
    Last Post: 2009-09-30, 06:25 PM
  3. Replies: 0
    Last Post: 2007-02-09, 07:24 AM
  4. How to check username and password with SQL?
    By mronkko in forum Developer Help
    Replies: 2
    Last Post: 2006-02-01, 02:00 PM
  5. Replies: 2
    Last Post: 2006-01-30, 10:53 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts