Roles from Azure AD to ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2022 02:19 PM
Hi All,
My organization has a set of Users mapped to a set of roles in Azure AD.
Our use case is that we are building a Service Portal Application in which the menu items in the portal will be available to a logged-in user based on his/her roles in Azure AD. As a user can have as much as 70-80 roles, bringing all roles as claims through a token will make the token bulky. We are wondering if there is a way to import all the Users and their corresponding Roles from Azure AD to ServiceNow Tables as a one-time data load.
What options does ServiceNow provide to achieve this ?
Thanks,
Ajay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2022 10:36 AM
Hi
I've not done this myself but the Microsoft Graph API should be a way. A REST call to the directoryRoles endpoint should provide you with the roles that can then be transformed into a ServiceNow table.
https://docs.microsoft.com/en-us/graph/api/directoryrole-list?view=graph-rest-1.0&tabs=http
Regards,
Niklas