Results 1 to 3 of 3

Thread: get users with specific role

  1. #1
    lenz1979 is offline Sugar Community Member
    Join Date
    Jun 2009
    Posts
    68

    Default get users with specific role

    Hello!

    i need to fetch all system users which have a specific role. ( to send an email to that users )

    is there a way to do this within the sugar functions?

    one idea is:
    --> select all users directly from mysql-table.
    --> go through each row and:
    ----> $tmp_user = new User();
    ----> $tmp_user->retrieve_user_id(UIDOFCURRENTROW)
    ----> $tmp_user->check_role_membership("ROLENAME")


    But maybe there is already a method for retrieving all users that belong to a specific role within the sugarcrm framework. ??

    any ideas?

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: get users with specific role

    What version and edition are you using?

  3. #3
    lenz1979 is offline Sugar Community Member
    Join Date
    Jun 2009
    Posts
    68

    Default Re: get users with specific role

    i use community edition 5.2.0a

    currently i made it by querying the acl_role* tables..

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 2008-12-04, 11:53 AM
  2. Group Tabs for a Specific Role / Group Members
    By DALCWBSMAVS in forum Developer Help
    Replies: 1
    Last Post: 2008-04-04, 12:34 AM
  3. Replies: 3
    Last Post: 2006-11-10, 04:29 AM
  4. users to see only cases relating to specific accounts?
    By BBarry in forum Customer Support
    Replies: 2
    Last Post: 2006-06-28, 07:42 AM
  5. Replies: 0
    Last Post: 2006-05-26, 12:33 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
  •