Receiving Insufficient Permission error from DirectoryService

前端 未结 4 1490
执笔经年
执笔经年 2021-01-12 08:00

I am trying to setup c# code to manage our Google domain.

I am receiving this error whenever I call service.Users.List() or any other method from the DirectoryServic

4条回答
  •  长情又很酷
    2021-01-12 08:42

    2 options:

    1. You didn't include the right Scope. Are you sure that DirectoryService.Scope.AdminDirectoryOrgunit, DirectoryService.Scope.AdminDirectoryUser are enough?
    2. Did you enable the API in the Console? More information is available at: https://developers.google.com/api-client-library/dotnet/get_started#auth, Look for your project in https://console.cloud.google.com/project and make sure that you enabled the Directory Admin API.

    Please update this thread if one of these options worked or something else is still missing for you.

提交回复
热议问题