Home > Software design >  Is it possible to fetch Azure AAD users and groups in spark code?
Is it possible to fetch Azure AAD users and groups in spark code?

Time:09-24

I have a pyspark notebook in Azure Synapse where the I need to get all the Azure AAD Group along with the users in them. Is there a way to achieve this?

CodePudding user response:

Microsoft Graph API will give you the list of AAD groups and group members using the following endpoints:

enter image description here

For more details, refer to Azure Active Directory - Reference section.

  • Related