Announcements
We plan to build a powerapp which do some magic and then assign security roles to a Dynamics 365 user.
Is it possible?
Hi @KjoniX
You would have to use the Power Platform for Admins connector to achieve roles assignments for environments
https://docs.microsoft.com/en-us/connectors/powerplatformforadmins/
--------------------------------------------------------------------------------If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
Wow, thanks!
But are you sure I can set Dynamics 365 security roles with Power Platform for Admins? I have read the documentation but cannot find where to apply security roles on user level.
@KjoniX
Hmmn
That is something that you would need to test out and validate
I did and my conclusion so far is not possible. Please prove me wrong! 🙂
Im no dynamics expert but Im sure there would be a powersehll way to achieve this
In that case, PowerApps can call a flow - flow can call an azure function or azure automation job which can run the powershell command
Hi @KjoniX ,
Usually, you could Assign Dynamics 365 security role here:
https://admin.powerplatform.microsoft.com/support
Firstly choose the enironment that you want and then create a security role.
Secondly, you could enable users to different sercurity.
If you want to build an app that can manage Dynamics 365 security role, then it's a little complex.
For now, the Dynamics 365 connector only supports these functions:
This operation creates a new record of an entity
This operation creates a new record of an entity (with option sets exposed as strings)
This operation deletes a record from an entity collection
This operation retrieves the specified record for an entity
This operation retrieves the specified record for an entity (with option sets exposed as strings)
This operation gets records for an entity
This operation gets records for an entity (with option sets exposed as strings)
This operation updates an existing record for an entity
This operation updates an existing record for an entity (with option sets exposed as strings)
About changing secruity role is not included.
So you need to create a custom connector that meets your demans.
Here's a doc about how to create a custom connector for your reference:
https://docs.microsoft.com/en-us/connectors/custom-connectors/define-blank
Best regards,
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 396 Most Valuable Professional
11manish 134 Super User 2026 Season 2
MS.Ragavendar 101 Super User 2026 Season 2