Hello,
I have this problem which I hope there is a resolution to.
I need to accomplish the following task:
1. Retrieve all users and groups from a SPO site collection.
2. Map all entities retrieved from the SharePoint to AAD.
I am having a difficulty mapping security groups synced from AAD to SPO.
The problem is that SPO only seems to expose the title of the group and its login name, which is a claim token that contains the SID of the group.
The title by it self is not unique so I can't map security groups by title alone. And the SID of the groups doesn't seem to be exposed in AAD.
So my question is, given a security group synced from AAD to SPO extracted from the SPO, how can I find the very same group in AAD.
Thanks for your help,
Leon