Skip to main content

Notifications

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

Get security roles assigned to an app in dynamics

Posted on by 25

Hi All,

We have a requirement to retrieve the security roles assigned to app in Dynamics 365 using Javascript. I would like to check if there is any way to do this using Javascript on form save.

I know we can get the properties of current business app using Xrm.Utility.globalContext.getCurrentAppProperties(). But I couldn’t find a way to get the roles assigned to the app. Any help is greatly appreciated.

 Thanks in advance.

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Get security roles assigned to an app in dynamics

    Hi,

    appmoduleroles is the intersect entity where roles assigned to model driven app is stored..

    You can query this table using web api

    docs.microsoft.com/.../appmodule

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Get security roles assigned to an app in dynamics

    Hi Jenny,

    Unfortunately, there is no way to achieve this. You could post an idea here to progress this feature:experience.dynamics.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

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,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans