Results 1 to 4 of 4

Thread: Per-record Permissions (Roles)

  1. #1
    kovshenin is offline Junior Member
    Join Date
    May 2010
    Posts
    2

    Question Per-record Permissions (Roles)

    Hi, I'm a noob to Sugar but found my way around installation and basic configuration. I run a web development agency and I'm looking forward to create a new module for sugar to store server access credentials, API keys and other sensitive information. This requires some extra permission management as I wouldn't like everyone to see all my API keys and server credentials. I know I can create a role and add users to that role to give them access, but I'm looking for something more customizable here.

    I'd like to give users permission to such records on a per-record permission, for instance user A could see only records 1, 2 and 3. User B could see records 2, 3 and 4. So both users could see records 2 and 3. I wouldn't like to create a role for each and every case where I need to give somebody access to a certain record.

    Is this achievable with Sugar? If so, what's the easiest way to implement this? I can do some PHP if needed. I'm running Sugar CRM CE 5.5.2.

    Thanks,
    ~ K

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Per-record Permissions (Roles)

    The built-in Roles mechanism should allow you to do what you are wanting.

    If you create a role that only allows users to access records from that module which they also own (by means of the "Assigned To" field) they will then only be able to view said record. You can also choose to allow them to view them, but not edit them. There are other variations you can create. It all depends on your exact requirements.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    kovshenin is offline Junior Member
    Join Date
    May 2010
    Posts
    2

    Default Re: Per-record Permissions (Roles)

    Angel, unfortunately no. The standard Roles mechanism is not enough. All my requirements are in my post, it's a one-to-many relationship between a module record and users. The SecurityGroups addon seems to be a little closer to what I'm looking for, but unfortunately it's a group based permission setting, not a user. Optimal would be group, user and role. Oh and it doesn't run on 5.5.2..

    Thanks.

  4. #4
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Per-record Permissions (Roles)

    Apologies, I missed the part about multiple users.

    Unfortunately your only choices would be to use an add-on such as Security Suite or the like (assuming they fit your requirements) or introduce the code yourself as there is no way to customize the behavior of the security model without some custom code.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. roles permissions about relationships
    By veronicakatz in forum Help
    Replies: 0
    Last Post: 2008-09-29, 04:00 PM
  2. User Roles not in the roles table?
    By doctorlard in forum Developer Help
    Replies: 3
    Last Post: 2006-04-18, 04:41 AM
  3. Replies: 7
    Last Post: 2005-09-13, 11:33 PM
  4. permissions / roles with projects and users
    By teklocust in forum Feature Requests
    Replies: 1
    Last Post: 2005-08-30, 05:09 PM
  5. Roles-Contacts and Roles-Accounts
    By jmontani in forum Developer Help
    Replies: 0
    Last Post: 2005-07-20, 08:35 PM

Tags for this Thread

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
  •