Results 1 to 2 of 2

Thread: how to assign a role to a user by web services

  1. #1
    raffor is offline Member
    Join Date
    Feb 2007
    Posts
    6

    Default how to assign a role to a user by web services

    i use
    Sugar crm Version 4.5.1 (Build 1197).
    Sugar Edition (e.g. SugarSuite OS)
    Database (e.g. MySQL 4.0.25)

    i have created a user in this way:
    ....
    .....
    $module_name = 'Users
    $create_users=$sugarClientProxy->set_entry($session_id,$module_name,$users);
    .......

    now i need to assign a role to this user.

    i have seen that:
    in module ACLROLES there is no iduser
    in module USERS there is no id role

    how can i resolve my problem?

    bye lello

  2. #2
    raffor is offline Member
    Join Date
    Feb 2007
    Posts
    6

    Default Re: how to assign a role to a user by web services

    i have solved in this way:


    $relationship_values = array(
    'module1' => 'ACLRoles',
    'module1_id' => '9f33adf2-60c4-81a8-a057-4601486494b4',
    'module2' => 'Users',
    'module2_id' => '1e031b7f-86ec-49f1-f968-4654460f6376'
    );

    $create_account=$sugarClientProxy->set_relationship($session_id,$relationship_values );


    bye

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Web Services Testing SugarCRM
    By myunus in forum Developer Help
    Replies: 5
    Last Post: 2007-01-15, 02:54 PM
  2. When setting up new user, assign a default role.
    By rickcrites2 in forum Feature Requests
    Replies: 2
    Last Post: 2006-09-04, 03:55 PM
  3. Replies: 2
    Last Post: 2006-08-22, 09:38 AM
  4. Let users assign next user
    By iliane in forum Help
    Replies: 2
    Last Post: 2006-07-22, 01:37 AM
  5. Cannot Login
    By Dillon in forum Help
    Replies: 16
    Last Post: 2004-10-13, 02:52 AM

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
  •