google-admin-sdk

Admin SDK generate link to access reset password page

寵の児 提交于 2021-01-07 03:14:09
问题 In GSuite, creating a user or resetting a password gives you the option to notify the user by mail. The email contains a link where he can then set a new password. Is there any way to reproduce that with googleapis ? Can't find anything related to that in the reference api : https://developers.google.com/admin-sdk/directory/v1/reference/ The response from POST https://www.googleapis.com/admin/directory/v1/users doesn't seem to provide any information to create that link. Thanks 来源: https:/

Admin SDK generate link to access reset password page

一曲冷凌霜 提交于 2021-01-07 03:09:47
问题 In GSuite, creating a user or resetting a password gives you the option to notify the user by mail. The email contains a link where he can then set a new password. Is there any way to reproduce that with googleapis ? Can't find anything related to that in the reference api : https://developers.google.com/admin-sdk/directory/v1/reference/ The response from POST https://www.googleapis.com/admin/directory/v1/users doesn't seem to provide any information to create that link. Thanks 来源: https:/

what are the google APIs to manage policies to block/restrict add-in(s) in google/Gsuite

梦想的初衷 提交于 2020-11-29 21:27:22
问题 I have a requirement to block/restrict specific add-ins for user(s) in accessing. I could able to block add-ins using google admin portal ( Security -> API Control), which solves the problem but instead of doing this manually, I would like to automate the same using google APIs. I tried to explore users, tokens, etc APIs but could not find an option. Appreciate if you can suggest an option to achieve this functionality through API. Providing more details for better understanding: To get the

what are the google APIs to manage policies to block/restrict add-in(s) in google/Gsuite

半世苍凉 提交于 2020-11-29 21:09:01
问题 I have a requirement to block/restrict specific add-ins for user(s) in accessing. I could able to block add-ins using google admin portal ( Security -> API Control), which solves the problem but instead of doing this manually, I would like to automate the same using google APIs. I tried to explore users, tokens, etc APIs but could not find an option. Appreciate if you can suggest an option to achieve this functionality through API. Providing more details for better understanding: To get the

Not able to watch Admin Users Directory using `google-admin-sdk`

纵然是瞬间 提交于 2020-11-24 22:52:36
问题 I am trying to connect to the G-Suite's User directory using the google-admin-sdk. I am using an API Key for authorization and I am not able to reach a successful execution. Here is the code snippet that I'm using: import { google } from 'googleapis'; import uuid from 'uuid/v4'; const API_KEY = 'my api key goes here'; google.admin({ version: 'directory_v1', auth: API_KEY }).users.list({ customer: 'my_customer', maxResults: 10, orderBy: 'email', }, (err, res: any) => { if (err) { return

Not able to watch Admin Users Directory using `google-admin-sdk`

南楼画角 提交于 2020-11-24 22:48:04
问题 I am trying to connect to the G-Suite's User directory using the google-admin-sdk. I am using an API Key for authorization and I am not able to reach a successful execution. Here is the code snippet that I'm using: import { google } from 'googleapis'; import uuid from 'uuid/v4'; const API_KEY = 'my api key goes here'; google.admin({ version: 'directory_v1', auth: API_KEY }).users.list({ customer: 'my_customer', maxResults: 10, orderBy: 'email', }, (err, res: any) => { if (err) { return

Not able to watch Admin Users Directory using `google-admin-sdk`

坚强是说给别人听的谎言 提交于 2020-11-24 22:45:27
问题 I am trying to connect to the G-Suite's User directory using the google-admin-sdk. I am using an API Key for authorization and I am not able to reach a successful execution. Here is the code snippet that I'm using: import { google } from 'googleapis'; import uuid from 'uuid/v4'; const API_KEY = 'my api key goes here'; google.admin({ version: 'directory_v1', auth: API_KEY }).users.list({ customer: 'my_customer', maxResults: 10, orderBy: 'email', }, (err, res: any) => { if (err) { return