Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Is it Possible to automate security roles to the users?

(0) ShareShare
ReportReport
Posted on by 231

Hello Experts,

Requirement is while adding user to the crm or creating users it should automatically assign security roles and field security roles to the user , please suggest me.

  • Suggested answer
    CRMJetty Profile Picture
    3,508 on at
    RE: Is it Possible to automate security roles to the users?

    Hello Amrutha B K

    Yes, Using power automated and Azure ID it can be done.

    Follow this link : iiu.dk/.../

    Please mark the answer as verified if that's helpful for you.

  • Joost Cuppes Profile Picture
    5 on at
    RE: Is it Possible to automate security roles to the users?

    Hello, i've tried doing this, but new users are still not getting the group? What do i need to change to get it to work?

  • Suggested answer
    Bipin D365 Profile Picture
    28,977 Moderator on at
    RE: Is it Possible to automate security roles to the users?

    HI,

    You can write plugin to assoctiate role to use.

    docs.microsoft.com/.../sample-associate-security-role-user

    Code  to associate field security profile to user

    www.ais.com/.../

    Register steps on Systemuser entity and message is create post operation.

    Please mark my answer verified if i were helpful

  • Suggested answer
    LuHao Profile Picture
    40,884 on at
    RE: Is it Possible to automate security roles to the users?

    Hi Amrutha,

    A relatively simple way is to assign security roles to the organization team.

    Each D365 organization has a team with the same name as the organization, and it contains all users in the organization. New users will also be automatically added to this team.

    3276.pastedimage1602485115413v1.png

    So we only need to assign security roles to this organization team, this way whenever a new user is created, the user will have these security roles.

    Reference: https://ledgeviewpartners.com/blog/quick-tip-quickly-assign-roles-users/

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans