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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Assign Dynamics 365 se...
Power Apps
Answered

Assign Dynamics 365 security role with PowerApps

(0) ShareShare
ReportReport
Posted on by 21

We plan to build a powerapp which do some magic and then assign security roles to a Dynamics 365 user. 

Is it possible?

Categories:
I have the same question (0)
  • RezaDorrani Profile Picture
    12,145 on at

    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.

  • kjoniXen Profile Picture
    21 on at

    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.

     

    Skjermbilde.PNG

  • RezaDorrani Profile Picture
    12,145 on at

    @KjoniX 

     

    Hmmn

    That is something that you would need to test out and validate

     

  • kjoniXen Profile Picture
    21 on at

    I did and my conclusion so far is not possible. Please prove me wrong! 🙂

  • RezaDorrani Profile Picture
    12,145 on at

    Hi @KjoniX 

     

    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 

     

    --------------------------------------------------------------------------------
    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.

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    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.10104.PNG

     

    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:

    Create a new record

    This operation creates a new record of an entity

    Create a new record

    This operation creates a new record of an entity (with option sets exposed as strings)

    Delete a record

    This operation deletes a record from an entity collection

    Get record

    This operation retrieves the specified record for an entity

    Get record

    This operation retrieves the specified record for an entity (with option sets exposed as strings)

    List records

    This operation gets records for an entity

    List records

    This operation gets records for an entity (with option sets exposed as strings)

    Update a record

    This operation updates an existing record for an entity

    Update a record

    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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 396 Most Valuable Professional

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard