Quantcast
Channel: Azure Active Directory forum
Viewing all articles
Browse latest Browse all 16000

Get ObjectId for a Domain group in SharePoint Online or use another attribute to query Azure AD (Office 365)

$
0
0

Hi,

When I get a Domain group in SharePoint Online, I got something like this:

<User ID="10" Sid="" Name="Research and Development" LoginName="c:0-.f|rolemanager|s-1-5-21-2644810856-3409521387-2709630237-1905230" Email="" Notes="" IsSiteAdmin="True" IsDomainGroup="True" Flags="0" IsShareByEmailGuestUser="False" IsShareByLinkGuestUser="False" UserKey="c:0-.f|rolemanager|s-1-5-21-2644810856-3409521387-2709630237-1905230" />

If I want to get this group in Azure AD by using the Azure AD REST Graph Api, I need the "ObjectId" of this group...

https://graph.windows.net/mytenantdomain/groups/<objectId>

Ref.: https://msdn.microsoft.com/en-us/library/azure/dn151606.aspx

It's the same thing if I want to use a PowerShell command.

How can we programmatically make a link between the Domain group in SharePoint Online and the same Office 365 group in Azure AD? The ObjectId is not available in SharePoint Online...

The DisplayName of the group is not an option since it can be not synchronized with Office 365/Azure AD.

Thanks,

Matthieu


Viewing all articles
Browse latest Browse all 16000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>