Questions tagged [google-admin-sdk]

Use for questions about using APIs and services that are part of the Google (G Suite) Admin SDK, platform for developers that write applications to manage G Suite domains, migrate from and integrate with existing IT infrastructure, create users, update settings, audit activity, and more.

About

The Google (G Suite) Admin SDK allows developers to write applications to manage Google Apps domains, migrate from and integrate with existing IT infrastructure, create users, update settings, audit activity, and more.

Use for questions

About APIs and services that are part of the G Suite Admin SDK

Do not use for questions

About general interaction with Google APIs, use instead.

Admin SDK APIs

: Admin Settings API
: Alert Center API
: Directory API
: Domain Shared Contacts API
: Email Audit API
: Enterprise License Manager API
: Groups Migration API
: Groups Settings API
: GSuite Email Audit API
: GSuite Reseller API (former Enterprise Apps Reseller API)
: Reports API

Deprecated APIs

  1. Email Migration API on November 1, 2015
  2. Email Settings API on October 16, 2019
1554 questions
0
votes
1 answer

Google Calendar Resources iOS SDK

I´m using the google-api-objectivec-client for iOS to get the list of Calendars. While I can see the calendars for resources (like rooms, etc..), I see other kind of calendars, such as the personal calendar of the user, or the "National holidays"…
0
votes
1 answer

Getting a 403 while creating a user, followed every step right so far

Looks like I have followed every step (given that the documentation is extremely lacking, it is sourced from multiple places). This is my code: def create_user(cred_file_location, user_first_name, user_last_name, user_email): cred_data =…
Rohan Prabhu
  • 7,180
  • 5
  • 37
  • 71
0
votes
1 answer

Update user mail address via apps script with admin SDK

I'm trying to update users of my domain to a new adress ,basically the same command than gam which is : " gam update user userx username mailadress@x.com " My goal is to make the same thing but using google apps script, the documentation isn't very…
jdris
  • 3
  • 2
0
votes
2 answers

How to filter chromeosdevices by org unit?

I am working with the Google Admin SDK Directory API in managing domain Chromebooks. I am reviewing the chromeosdevices.list method, in hopes of reducing the number of returned device resources by filtering for a specific OU either by OrgUnitPath or…
0
votes
1 answer

How do I switch primary domains with the API?

I found this: https://developers.google.com/apis-explorer/#p/admin/directory_v1/ But which is the intended method? Thank you in advance.
aassaf
  • 60
  • 7
0
votes
0 answers

Trying Google Directory API in android app

I have started learning to implement google APIs to android apps. Currently exploring the update method in the directory API. There is an option to try it, before actually implementing and this is the point where I'm getting code 403 after posting…
Akeshwar Jha
  • 4,516
  • 8
  • 52
  • 91
0
votes
0 answers

How to implement Incremental Authorization with Google API?

I have an installed app that is a toolkit for the user, and as such they're able to choose their own scopes. I've run in to an issue with a scope limit when being passed as parameters via the URL. As such I'm looking to implement Incremental…
squid808
  • 1,430
  • 2
  • 14
  • 31
0
votes
1 answer

Authenticating via HTTP request to Google Email Settings API

Have been trying to access the google email settings api via ruby. So far, I can get an access token using the ruby google api client, #
Carpela
  • 2,155
  • 1
  • 24
  • 55
0
votes
1 answer

How to get metadata of an unshared file from another user with google drive api?

I'm currently working on a C# asp.net mvc web app using the Google Reports API from Admin SDK to receive notifications when something happens on my Google Drive. Then, I need to use in addition the Drive REST API GET Request to build the file Path…
0
votes
1 answer

Security and Domain-Wide Delegation

As an ISV, I want to provide multiple customers of mine (and Google's) the ability to collect data from the Directory API. Since our app is headless, it seems that Domain-Wide Delegation is needed for customers to authorize our app, however it…
MushyMiddle
  • 419
  • 6
  • 14
0
votes
2 answers

Admin API Privilege (suspend user)

The Google Admin control panel provides the "Suspend Users" API privelege. What's the API call to suspend a user? https://developers.google.com/admin-sdk/directory/v1/reference/users/patch requires the…
freedomLover
  • 1
  • 1
  • 2
0
votes
1 answer

Google Admin API pageToken loop help python

I am trying to retrieve all the members of each group in my company. My code works fine unless there are more than 200 members in a group, then it outputs the group ID a few times before actually listing the members like on "group2@company.com". I…
0
votes
1 answer

Code runs from the dev console but not when using triggers - Google App Script

I have a Google form that submits data to a Google Sheet. I have set a time-based event to run a Google App Script, within the spreadsheet, every 10 minutes for testing purposes. The script takes data in the spreadsheet and updates users'…
dericcain
  • 2,182
  • 7
  • 30
  • 52
0
votes
1 answer

How to bulk reset password of a Google App account?

I have Admin access to a Google domain. I want to do bulk password reset of user account and also if possible make them change their password after first sign in. Currently im doing this using GAM. is there any way to do this using App script or…
0
votes
1 answer

Google Admin 403 Error with PHP

I have been searching and trying many different solutions to this error that I have found not only this site but others as well. Currently I am trying to just get a list of users or a specific user details based on parameters set. In the long run I…