Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

How to differentiate custom vs oob security roles in advance find/fetxhxml or in plugin code

Posted on by 5,227

Hi,

I will have to check if user have assigned OOb roles or system (OOB) security roles. 

Does anyone know how we can differentiate it ?

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,962 Moderator on at
    RE: How to differentiate custom vs oob security roles in advance find/fetxhxml or in plugin code

    Hi,

    I hope you have added filter condition as shown below -

    CR44.PNG

    I have tried this in my instance and it returns only custom roles.

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • Suggested answer
    Pawar Pravin  Profile Picture
    Pawar Pravin 5,227 on at
    RE: How to differentiate custom vs oob security roles in advance find/fetxhxml or in plugin code

    Hi Bipin,

    Thanks for the reply.

    If I add same filter criteria in advance find but it is showing custom security roles as well.

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,962 Moderator on at
    RE: How to differentiate custom vs oob security roles in advance find/fetxhxml or in plugin code

    Hello,

    If CreatedBy is SYSTEM OR Blank then Role is System OOB Role else Role is custom role.

    CR43.PNG

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,647 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans