Results 1 to 2 of 2

Thread: Default role and team assignment

  1. #1
    rwoo is offline Sugar Community Member
    Join Date
    Apr 2011
    Posts
    15

    Default Default role and team assignment

    Please help me securing our SugarCRM…

    I would like to enable "Auto Create Users" with LDAP grouping, but the option gives new users wide open access to SugarCRM. I would like to assign read only role and team for all new users prior to his/her access to the system.

    What should I modify to assign default role and team when a new user gets created?

    I am running SugarCRM 5.5.1 Professional.

    Thanks,
    RLW

  2. #2
    rwoo is offline Sugar Community Member
    Join Date
    Apr 2011
    Posts
    15

    Default Re: Default role and team assignment

    I believe I got it to work.

    I modified \modules\Users\authentication\LDAPAuthenticate\LDA PAuthenticateUser.php

    I added the following lines to createUser function after save() before return statement.

    $user->default_team = default_team_id;
    $user->load_relationship('teams');
    $user->teams->add(default_team_id);
    $user->load_relationship('aclroles');
    $user->aclroles->add('default_role_id');

    My question now is how can I make this upgrade safe...

    Thanks,
    Rebekah

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. ZuckerReports Team Assignment
    By chilyroll in forum General Discussion
    Replies: 0
    Last Post: 2010-10-18, 05:44 AM
  2. Replies: 5
    Last Post: 2008-09-22, 12:11 PM
  3. Team Assignment
    By chrislynch8 in forum Developer Help
    Replies: 0
    Last Post: 2008-06-30, 11:17 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
  •