Results 1 to 2 of 2

Thread: Portal_user issue

  1. #1
    clustertest is offline Junior Member
    Join Date
    Sep 2007
    Posts
    2

    Default Portal_user issue

    Hi all

    I have this installation

    php version 5.2.0
    SugarCRM opensource 4.5.1e

    I need to retrieve some information throught Soap interface.So I created a specific user for this task I guess that an user with flag "Portal_only" only is enough for this.

    I created the user, but no way to authenticate it using login soap function. Looking around I found that in the table "Users" the field "Portal_only" was set to 1 (on), which is was expected.

    But if a look into the source code, in the file called SoapSugarUsers.php, I found this piece of code:

    $user = $user->retrieve_by_string_fields(array('user_name'=>$use r_auth['user_name'],'user_hash'=>$user_auth['password'], 'deleted'=>0, 'status'=>'Active', 'portal_only'=>0) );

    So this was the reason not to login in anyway. If a change the user status not to be portal_only user, and of course it works or if a change the above code to " 'portal_only'=>0.


    So the question is, is it the right way to create an use just to be part of Soap calls, to
    created portal_only as suggest sugarcrm when you create the user??

    You have to created as a "Normal User", so why exists "Portal User"??


    Thank you very much

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Portal_user issue

    I believe that the portal user is for the SoapPortalUser interface. You should be able to use normal users SoapSugarUsers. The different between the two are that contacts can access their records with SoapPortalUser (with the portal_name on the contact screen being the connector) and normal Sugar users can access their records outside of Sugar with SoapSugarUsers.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 28
    Last Post: 2012-01-04, 06:12 AM
  2. HOWTO post a request for help that will most likely get a response
    By andrewhsu in forum Installation and Upgrade Help
    Replies: 5
    Last Post: 2007-11-06, 10:19 AM
  3. Replies: 2
    Last Post: 2006-10-02, 10:01 AM
  4. Replies: 5
    Last Post: 2006-08-04, 05:34 PM
  5. Checkbox Issue...
    By Thierry in forum Developer Help
    Replies: 3
    Last Post: 2005-05-09, 02:22 PM

Bookmarks

Posting Permissions

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