Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

FLOW: Assign Security Roles to Users at Business Unit level? Is this possible using power automate?

Posted on by 45

This is how I set up the flow to assign security roles Assign/Remove Security Roles to Users Via Power Automate – The Techie dood (wordpress.com)
But I want to assign those security roles at Business Unit level and not at Organization level.

  • Robert94 Profile Picture
    Robert94 45 on at
    RE: FLOW: Assign Security Roles to Users at Business Unit level? Is this possible using power automate?

    Update:

    So the flow assigns the Security Roles for the Parent Business Unit only,

    If I were to change the parent business unit for a user to another business unit, the flow will not assign those security roles to that business unit.

  • Robert94 Profile Picture
    Robert94 45 on at
    RE: FLOW: Assign Security Roles to Users at Business Unit level? Is this possible using power automate?

    Maybe I formulated wrong my question.

    If you go to the admin center at user settings, select any user and edit it, there you have multiple sections:

    One of them is called Organization Information, and below, you have the Business Unit name the user is part of , and a button that states "change business unit" .

    I noticed that the flow does not assign the roles to that business unit the user is part of.

    For example: user is part of BusinessUnit1, I assign the role Basic User through the flow.

    Now, if I go to in the admin center and check the security role, I can see that he has that role assigned, but if I were to click manage roles, the Basic User role won`t appear as assigned on that windows, and it gives me the option of assigning it again, meaning the user will now have 2 Basic User roles.

    The role assigned manually through manage roles is for the BusinessUnit1, and the first role assigned by the flow is for the whole Organization/All BusinessUnits, meaning the user gets access to content that he shouldn`t get.

    I can`t upload any images here, cus it would`ve been easier to understand.

  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 8,506 Super User 2024 Season 1 on at
    RE: FLOW: Assign Security Roles to Users at Business Unit level? Is this possible using power automate?

    What do you mean by Business Unit level and not at Organization level? In the given flow they are just assigning the roles to a user that is it. they are not defining any entity level permissions..

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans