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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Get security roles assigned to an app in dynamics

(0) ShareShare
ReportReport
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.

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Jenny,

    Unfortunately, there is no way to achieve this. You could post an idea here to progress this feature:experience.dynamics.com/.../

  • Suggested answer
    Bipin D365 Profile Picture
    28,985 Moderator on at

    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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 166

#2
ManoVerse Profile Picture

ManoVerse 54 Super User 2026 Season 1

#3
Niki Patel Profile Picture

Niki Patel 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans