Closed nfoley84 closed 3 years ago
I haven't used the OAUTH2 library you mentioned, but based on observation to your code snippet, my guess is its group query would be https://graph.microsoft.com/v1.0/me//transitiveMemberOf/microsoft.graph.group
or https://graph.microsoft.com/v1.0/me//transitiveMemberOf/microsoft.graph.group?$select=displayName
. You can try setting either of them as the ENDPOINT, and see how it goes.
Closing due to inactivity.
Using OAUTH2 with the following:
I can a query for groups that the logged-in User is Part of
Using MSAL how can this be done using the /Users Endpoint? I changed the app_config.py to
ENDPOINT = 'https://graph.microsoft.com/v1.0/me'
But only able to get the Email or Display Name showing
preferredUsername = user=session['user']['displayName'] # Getting User from User.Session