web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dedicated Activate/Deactivate Security role

(0) ShareShare
ReportReport
Posted on by 2,737

Hi,

I have implemented many security roles but now I have create such a dedicated security role who can only Activate or Deactivate a record only.But the problem is Activate/ Deactivate is handled by Write permission.If I give write permission,user not only can Activate/Deactivate a record but also can edit the details.But I want to create a role who can only Activate/Deactivate a record but can't update any other details.

is there any way to achieve this?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mithilesh Kumar Profile Picture
    10,047 on at

    Hi Rahul,

    As you know, Activate / Deactivate of records are handled by Write permissions on that Entity, therefore any role which is used to Activate / Deactivate record will have the privilege to Write on the Record, thus able to Update the Record.

    There are some workarounds which I would suggest

    1. User of Real Time Workflow to stop Activating / Deactivating record and show user an Error Message.

    An example can be found here

    http://survivingcrm.com/2013/11/using-real-time-workflows-to-show-error-messages/

    2 Editing of Activate / Deactivate Ribbon button using Ribbon Workbench.

    Here is an example

    blog.customereffective.com/.../managing-activatedeactivate-permissions-of-crm-entities.html

    Ribbon Workbench download

    ribbonworkbench.uservoice.com/.../80806-download-ribbon-workbench-for-crm-2011-2013-2015

    3. Use of Plugin to stop Activating and Deactivating. Plugin will be registered on SetState message. Check for the privilege and throw error when not appropriate privilege.

    Hope that helps

    Thanks

  • Suggested answer
    Aileen Gusni Profile Picture
    44,524 on at

    Hi Rahul,

    You are correct, you need to give permission = Write to the user in order to allow them activate or deactivate record, there is no dedicated privilege for this.

    It seems you want to allow the user to act/deactivate a record not to prevent it.

    So if you want to allow the user to Activate/Deactivate a record, but cant update any other detail, you are required to give Write permission to the user.

    But, to prevent them to update any other details, you can implement field level security.

    Steps:

    1. Go to the Customization

    Settings --> Customize --> Customize the System

    2. Go to the Entity you want to give permission

    3. Then go to the field you want to prevent to be updated

    Choose the field, for example:

    fieldlevel2.png

    Then just enable the Field security.

    *This is you need to do to all fields you want to prevent to update.

    Usually, we use only for specific fields that is very very important, remember only CRM 2015 that can support system field, ok. CRM 2013 still cannot support this system field security.

    4. Then go to the Administration, field security profiles

    fieldlevel4.png

     

     

    5. Then you can create new profile

    After that, assign to the users or teams you want to give this permission (can do later)

    6. Then give the field permissions, you can see the list of fields you have enable in the early step

    Save it.

    Other good references:

    https://crmbusiness.wordpress.com/2014/05/22/crm-2013-how-to-set-up-field-level-security/

    http://www.dynamics101.com/2013/09/configure-field-level-security-microsoft-dynamics-crm-2011/

    This is can be tough because you need to enable the fields per entity as well, one by one.

    But this is a way without custom code, because your purpose here is in fact allow user to deactivate/activate the records, but cannot edit other detail, in fact in CRM you need Write permission, you are not having objective to prevent user to deactivate or deactivate, so the ribbon visibility customization for deactivate  button is not recommended here.

    Another way, you can use Plugin or Realtime workflow to validate, if any field is updated then prevent error.

    But, here you need to write custom code for plugin then have to check the current login for user, and if realtime workflow is cannot be used for specific role as well.

    You can also write javascript to disable all form fields here:

    https://www.it-gems.com/2013/10/set-whole-form-read-dynamics-crm-2011.html

    Combine this with Role-based Form.

    https://www.powerobjects.com/blog/2012/09/24/pros-cons-role-based-forms-crm-2011/

    https://www.powerobjects.com/blog/2010/12/07/microsoft-dynamics-crm-2011-role-based-forms/

    You can specify a form by security role.

    Then make this form as read-only when form update.

    CRM only have the form read-only or editable at all, no specific for deactivate only, just for your reference here if you want to prevent user see the editable form.

    http://blogs.msdn.com/b/crm/archive/2012/03/22/read-optimized-forms.aspx

    But, this is the user cannot deactivate as well.

    So, I recommend you to use Field Level security or combine the role-based form with javascript for Form Update to disable the fields detail.

    I hope this can help you, Rahul.

    Thank you.

  • Suggested answer
    RahulGupta1307 Profile Picture
    2,737 on at

    Thanks Aileen.

    I like your answer...

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans