Roles from Azure AD to ServiceNow

Ajay Joseph
Tera Contributor

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

 

 

1 REPLY 1

Niklas Peterson
Mega Sage
Mega Sage

Hi @Ajay Joseph ,

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