Skip to content

How to work with AAD groups? #320

Answered by jansenbe
Ofer-Gal asked this question in Q&A
Discussion options

You must be logged in to vote

@Ofer-Gal : at this moment that's not a supported scenario, PnP Core SDK works by initializing a PnPContext from either a given site url or group id. So if you have the group id

// Your group id
Guid groupId = new Guid("593DB9B2-2167-45FC-8387-A2438696AB8E");

using (var pnpContext = await pnpContextFactory.CreateAsync(groupId))
{
   // Work with the SharePoint site (and Team) connected to this Microsoft 365 group  
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Ofer-Gal
Comment options

@jansenbe
Comment options

Answer selected by jansenbe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants