SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.24k stars 1.01k forks source link

How do I add the Group.Read.All permission? #6013

Closed jmuehlenbein closed 4 years ago

jmuehlenbein commented 4 years ago

I don't see this as an option anywhere....


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

msft-github-bot commented 4 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

JarbasHorst commented 4 years ago

Hello @jmuehlenbein

the documentation provides this link about Granting access via Azure AD App-Only (recommended) which shows how to define applications in Azure AD and how to grant permissions to SharePoint. However, this application can be granted permissions to Graph as well.

In your PnP Modernization Scanner Azure AD app, click on "API permissions" in the left menu bar, and click on the "Add a permission" button. A new blade will appear. Here you choose the permissions that you will grant to this application. Choose i.e.:

Now, click on the blue "Add permissions" button at the bottom to add the permissions to your application, then on "Grant admin consent for Contoso".

I hope it helps to clarify your question.

Regards, Jarbas

Jerry0527 commented 4 years ago

Group.Read.All is set in Azure AD App, you can firstly register Azure AD App:

Image 3

Then set Application Permissions:

Image 6

Reference:

Manage app registration and API permission for Microsoft Graph notifications

msft-github-bot commented 4 years ago

Closing this issue as "answered". If you encounter a similar issue(s), please open up a new issue. See our wiki for more details: Issue-List: Our approach to closed issues