- Status changed to Closed: won't fix
5 months ago 7:15am 28 June 2024 - π³π±Netherlands fabianderijk Alphen aan den Rijn
We have chosen to use the groups a user belongs to for mapping with Drupal roles. However, it is pretty easy to implement something like this yourself.
You can take a look at \Drupal\o365\EventSubscriber\RoleEventSubscriber and \Drupal\o365\RolesService::handleRoles to see how it is implemented now. If you would like to use the app roles you can use this endpoint: '/me/appRoleAssignments' for the logged in user. These are the docs in the Microsoft API reference: https://learn.microsoft.com/en-us/graph/api/user-list-approleassignments....
If you have any more questions, let me know!