GoogleApi.Admin.Directory_v1.Api.Users (google_api_admin v0.25.0) View Source
API calls for all endpoints tagged Users.
Link to this section Summary
Functions
Remove a alias for the user
Add a alias for the user
List all aliases for a user
Watch for changes in users list
Retrieve either deleted users or all users in a domain (paginated)
change admin status of a user
Patch Users via Apiary Patch Orchestration
Remove photos for the user
Retrieve photo of a user
Patch Photo via Apiary Patch Orchestration
Add a photo for the user
Sign a user out of all web and device sessions and reset their sign-in cookies. User will have to sign in by authenticating again.
Undelete a deleted user
Watch for changes in users list
Link to this section Functions
directory_users_aliases_delete(connection, user_key, alias, optional_params \\ [], opts \\ [])
View SourceSpecs
directory_users_aliases_delete( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, nil} | {:ok, Tesla.Env.t()} | {:error, any()}
Remove a alias for the user
Parameters
-
connection(type:GoogleApi.Admin.Directory_v1.Connection.t) - Connection to server -
user_key(type:String.t) - Email or immutable ID of the user -
alias(type:String.t) - The alias to be removed -
optional_params(type:keyword()) - Optional parameters-
:"$.xgafv"(type:String.t) - V1 error format. -
:access_token(type:String.t) - OAuth access token. -
:alt(type:String.t) - Data format for response. -
:callback(type:String.t) - JSONP -
:fields(type:String.t) - Selector specifying which fields to include in a partial response. -
:key(type:String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token(type:String.t) - OAuth 2.0 token for the current user. -
:prettyPrint(type:boolean()) - Returns response with indentations and line breaks. -
:quotaUser(type:String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType(type:String.t) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol(type:String.t) - Upload protocol for media (e.g. "raw", "multipart").
-
-
opts(type:keyword()) - Call options
Returns
-
{:ok, %{}}on success -
{:error, info}on failure
directory_users_aliases_insert(connection, user_key, optional_params \\ [], opts \\ [])
View SourceSpecs
directory_users_aliases_insert( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.Admin.Directory_v1.Model.Alias.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
Add a alias for the user
Parameters
-
connection(type:GoogleApi.Admin.Directory_v1.Connection.t) - Connection to server -
user_key(type:String.t) - Email or immutable ID of the user -
optional_params(type:keyword()) - Optional parameters-
:"$.xgafv"(type:String.t) - V1 error format. -
:access_token(type:String.t) - OAuth access token. -
:alt(type:String.t) - Data format for response. -
:callback(type:String.t) - JSONP -
:fields(type:String.t) - Selector specifying which fields to include in a partial response. -
:key(type:String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token(type:String.t) - OAuth 2.0 token for the current user. -
:prettyPrint(type:boolean()) - Returns response with indentations and line breaks. -
:quotaUser(type:String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType(type:String.t) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol(type:String.t) - Upload protocol for media (e.g. "raw", "multipart"). -
:body(type:GoogleApi.Admin.Directory_v1.Model.Alias.t) -
-
-
opts(type:keyword()) - Call options
Returns
-
{:ok, %GoogleApi.Admin.Directory_v1.Model.Alias{}}on success -
{:error, info}on failure
directory_users_aliases_list(connection, user_key, optional_params \\ [], opts \\ [])
View SourceSpecs
directory_users_aliases_list( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.Admin.Directory_v1.Model.Aliases.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
List all aliases for a user
Parameters
-
connection(type:GoogleApi.Admin.Directory_v1.Connection.t) - Connection to server -
user_key(type:String.t) - Email or immutable ID of the user -
optional_params(type:keyword()) - Optional parameters-
:"$.xgafv"(type:String.t) - V1 error format. -
:access_token(type:String.t) - OAuth access token. -
:alt(type:String.t) - Data format for response. -
:callback(type:String.t) - JSONP -
:fields(type:String.t) - Selector specifying which fields to include in a partial response. -
:key(type:String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token(type:String.t) - OAuth 2.0 token for the current user. -
:prettyPrint(type:boolean()) - Returns response with indentations and line breaks. -
:quotaUser(type:String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType(type:String.t) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol(type:String.t) - Upload protocol for media (e.g. "raw", "multipart").
-
-
opts(type:keyword()) - Call options
Returns
-
{:ok, %GoogleApi.Admin.Directory_v1.Model.Aliases{}}on success -
{:error, info}on failure
directory_users_aliases_watch(connection, user_key, optional_params \\ [], opts \\ [])
View SourceSpecs
directory_users_aliases_watch( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.Admin.Directory_v1.Model.Channel.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
Watch for changes in users list
Parameters
-
connection(type:GoogleApi.Admin.Directory_v1.Connection.t) - Connection to server -
user_key(type:String.t) - Email or immutable ID of the user -
optional_params(type:keyword()) - Optional parameters-
:"$.xgafv"(type:String.t) - V1 error format. -
:access_token(type:String.t) - OAuth access token. -
:alt(type:String.t) - Data format for response. -
:callback(type:String.t) - JSONP -
:fields(type:String.t) - Selector specifying which fields to include in a partial response. -
:key(type:String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token(type:String.t) - OAuth 2.0 token for the current user. -
:prettyPrint(type:boolean()) - Returns response with indentations and line breaks. -
:quotaUser(type:String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType(type:String.t) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol(type:String.t) - Upload protocol for media (e.g. "raw", "multipart"). -
:event(type:String.t) - Event on which subscription is intended (if subscribing) -
:body(type:GoogleApi.Admin.Directory_v1.Model.Channel.t) -
-
-
opts(type:keyword()) - Call options
Returns
-
{:ok, %GoogleApi.Admin.Directory_v1.Model.Channel{}}on success -
{:error, info}on failure
directory_users_delete(connection, user_key, optional_params \\ [], opts \\ [])
View SourceSpecs
directory_users_delete(Tesla.Env.client(), String.t(), keyword(), keyword()) :: {:ok, nil} | {:ok, Tesla.Env.t()} | {:error, any()}
Delete user
Parameters
-
connection(type:GoogleApi.Admin.Directory_v1.Connection.t) - Connection to server -
user_key(type:String.t) - Email or immutable ID of the user -
optional_params(type:keyword()) - Optional parameters-
:"$.xgafv"(type:String.t) - V1 error format. -
:access_token(type:String.t) - OAuth access token. -
:alt(type:String.t) - Data format for response. -
:callback(type:String.t) - JSONP -
:fields(type:String.t) - Selector specifying which fields to include in a partial response. -
:key(type:String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token(type:String.t) - OAuth 2.0 token for the current user. -
:prettyPrint(type:boolean()) - Returns response with indentations and line breaks. -
:quotaUser(type:String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType(type:String.t) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol(type:String.t) - Upload protocol for media (e.g. "raw", "multipart").
-
-
opts(type:keyword()) - Call options
Returns
-
{:ok, %{}}on success -
{:error, info}on failure
directory_users_get(connection, user_key, optional_params \\ [], opts \\ [])
View SourceSpecs
directory_users_get(Tesla.Env.client(), String.t(), keyword(), keyword()) :: {:ok, GoogleApi.Admin.Directory_v1.Model.User.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
retrieve user
Parameters
-
connection(type:GoogleApi.Admin.Directory_v1.Connection.t) - Connection to server -
user_key(type:String.t) - Email or immutable ID of the user -
optional_params(type:keyword()) - Optional parameters-
:"$.xgafv"(type:String.t) - V1 error format. -
:access_token(type:String.t) - OAuth access token. -
:alt(type:String.t) - Data format for response. -
:callback(type:String.t) - JSONP -
:fields(type:String.t) - Selector specifying which fields to include in a partial response. -
:key(type:String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token(type:String.t) - OAuth 2.0 token for the current user. -
:prettyPrint(type:boolean()) - Returns response with indentations and line breaks. -
:quotaUser(type:String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType(type:String.t) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol(type:String.t) - Upload protocol for media (e.g. "raw", "multipart"). -
:customFieldMask(type:String.t) - Comma-separated list of schema names. All fields from these schemas are fetched. This should only be set when projection=custom. -
:projection(type:String.t) - What subset of fields to fetch for this user. -
:viewType(type:String.t) - Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the user.
-
-
opts(type:keyword()) - Call options
Returns
-
{:ok, %GoogleApi.Admin.Directory_v1.Model.User{}}on success -
{:error, info}on failure
directory_users_insert(connection, optional_params \\ [], opts \\ [])
View SourceSpecs
directory_users_insert(Tesla.Env.client(), keyword(), keyword()) :: {:ok, GoogleApi.Admin.Directory_v1.Model.User.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
create user.
Parameters
-
connection(type:GoogleApi.Admin.Directory_v1.Connection.t) - Connection to server -
optional_params(type:keyword()) - Optional parameters-
:"$.xgafv"(type:String.t) - V1 error format. -
:access_token(type:String.t) - OAuth access token. -
:alt(type:String.t) - Data format for response. -
:callback(type:String.t) - JSONP -
:fields(type:String.t) - Selector specifying which fields to include in a partial response. -
:key(type:String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token(type:String.t) - OAuth 2.0 token for the current user. -
:prettyPrint(type:boolean()) - Returns response with indentations and line breaks. -
:quotaUser(type:String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType(type:String.t) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol(type:String.t) - Upload protocol for media (e.g. "raw", "multipart"). -
:body(type:GoogleApi.Admin.Directory_v1.Model.User.t) -
-
-
opts(type:keyword()) - Call options
Returns
-
{:ok, %GoogleApi.Admin.Directory_v1.Model.User{}}on success -
{:error, info}on failure
directory_users_list(connection, optional_params \\ [], opts \\ [])
View SourceSpecs
directory_users_list(Tesla.Env.client(), keyword(), keyword()) :: {:ok, GoogleApi.Admin.Directory_v1.Model.Users.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
Retrieve either deleted users or all users in a domain (paginated)
Parameters
-
connection(type:GoogleApi.Admin.Directory_v1.Connection.t) - Connection to server -
optional_params(type:keyword()) - Optional parameters-
:"$.xgafv"(type:String.t) - V1 error format. -
:access_token(type:String.t) - OAuth access token. -
:alt(type:String.t) - Data format for response. -
:callback(type:String.t) - JSONP -
:fields(type:String.t) - Selector specifying which fields to include in a partial response. -
:key(type:String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token(type:String.t) - OAuth 2.0 token for the current user. -
:prettyPrint(type:boolean()) - Returns response with indentations and line breaks. -
:quotaUser(type:String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType(type:String.t) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol(type:String.t) - Upload protocol for media (e.g. "raw", "multipart"). -
:customFieldMask(type:String.t) - Comma-separated list of schema names. All fields from these schemas are fetched. This should only be set when projection=custom. -
:customer(type:String.t) - Immutable ID of the G Suite account. In case of multi-domain, to fetch all users for a customer, fill this field instead of domain. -
:domain(type:String.t) - Name of the domain. Fill this field to get users from only this domain. To return all users in a multi-domain fill customer field instead. -
:maxResults(type:integer()) - Maximum number of results to return. -
:orderBy(type:String.t) - Column to use for sorting results -
:pageToken(type:String.t) - Token to specify next page in the list -
:projection(type:String.t) - What subset of fields to fetch for this user. -
:query(type:String.t) - Query string search. Should be of the form "". Complete documentation is at https: //developers.google.com/admin-sdk/directory/v1/guides/search-users -
:showDeleted(type:String.t) - If set to true, retrieves the list of deleted users. (Default: false) -
:sortOrder(type:String.t) - Whether to return results in ascending or descending order. -
:viewType(type:String.t) - Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the user.
-
-
opts(type:keyword()) - Call options
Returns
-
{:ok, %GoogleApi.Admin.Directory_v1.Model.Users{}}on success -
{:error, info}on failure
directory_users_make_admin(connection, user_key, optional_params \\ [], opts \\ [])
View SourceSpecs
directory_users_make_admin(Tesla.Env.client(), String.t(), keyword(), keyword()) :: {:ok, nil} | {:ok, Tesla.Env.t()} | {:error, any()}
change admin status of a user
Parameters
-
connection(type:GoogleApi.Admin.Directory_v1.Connection.t) - Connection to server -
user_key(type:String.t) - Email or immutable ID of the user as admin -
optional_params(type:keyword()) - Optional parameters-
:"$.xgafv"(type:String.t) - V1 error format. -
:access_token(type:String.t) - OAuth access token. -
:alt(type:String.t) - Data format for response. -
:callback(type:String.t) - JSONP -
:fields(type:String.t) - Selector specifying which fields to include in a partial response. -
:key(type:String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token(type:String.t) - OAuth 2.0 token for the current user. -
:prettyPrint(type:boolean()) - Returns response with indentations and line breaks. -
:quotaUser(type:String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType(type:String.t) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol(type:String.t) - Upload protocol for media (e.g. "raw", "multipart"). -
:body(type:GoogleApi.Admin.Directory_v1.Model.UserMakeAdmin.t) -
-
-
opts(type:keyword()) - Call options
Returns
-
{:ok, %{}}on success -
{:error, info}on failure
directory_users_patch(connection, user_key, optional_params \\ [], opts \\ [])
View SourceSpecs
directory_users_patch(Tesla.Env.client(), String.t(), keyword(), keyword()) :: {:ok, GoogleApi.Admin.Directory_v1.Model.User.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
Patch Users via Apiary Patch Orchestration
Parameters
-
connection(type:GoogleApi.Admin.Directory_v1.Connection.t) - Connection to server -
user_key(type:String.t) - Email or immutable ID of the user. If ID, it should match with id of user object -
optional_params(type:keyword()) - Optional parameters-
:"$.xgafv"(type:String.t) - V1 error format. -
:access_token(type:String.t) - OAuth access token. -
:alt(type:String.t) - Data format for response. -
:callback(type:String.t) - JSONP -
:fields(type:String.t) - Selector specifying which fields to include in a partial response. -
:key(type:String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token(type:String.t) - OAuth 2.0 token for the current user. -
:prettyPrint(type:boolean()) - Returns response with indentations and line breaks. -
:quotaUser(type:String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType(type:String.t) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol(type:String.t) - Upload protocol for media (e.g. "raw", "multipart"). -
:body(type:GoogleApi.Admin.Directory_v1.Model.User.t) -
-
-
opts(type:keyword()) - Call options
Returns
-
{:ok, %GoogleApi.Admin.Directory_v1.Model.User{}}on success -
{:error, info}on failure
directory_users_photos_delete(connection, user_key, optional_params \\ [], opts \\ [])
View SourceSpecs
directory_users_photos_delete( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, nil} | {:ok, Tesla.Env.t()} | {:error, any()}
Remove photos for the user
Parameters
-
connection(type:GoogleApi.Admin.Directory_v1.Connection.t) - Connection to server -
user_key(type:String.t) - Email or immutable ID of the user -
optional_params(type:keyword()) - Optional parameters-
:"$.xgafv"(type:String.t) - V1 error format. -
:access_token(type:String.t) - OAuth access token. -
:alt(type:String.t) - Data format for response. -
:callback(type:String.t) - JSONP -
:fields(type:String.t) - Selector specifying which fields to include in a partial response. -
:key(type:String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token(type:String.t) - OAuth 2.0 token for the current user. -
:prettyPrint(type:boolean()) - Returns response with indentations and line breaks. -
:quotaUser(type:String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType(type:String.t) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol(type:String.t) - Upload protocol for media (e.g. "raw", "multipart").
-
-
opts(type:keyword()) - Call options
Returns
-
{:ok, %{}}on success -
{:error, info}on failure
directory_users_photos_get(connection, user_key, optional_params \\ [], opts \\ [])
View SourceSpecs
directory_users_photos_get(Tesla.Env.client(), String.t(), keyword(), keyword()) :: {:ok, GoogleApi.Admin.Directory_v1.Model.UserPhoto.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
Retrieve photo of a user
Parameters
-
connection(type:GoogleApi.Admin.Directory_v1.Connection.t) - Connection to server -
user_key(type:String.t) - Email or immutable ID of the user -
optional_params(type:keyword()) - Optional parameters-
:"$.xgafv"(type:String.t) - V1 error format. -
:access_token(type:String.t) - OAuth access token. -
:alt(type:String.t) - Data format for response. -
:callback(type:String.t) - JSONP -
:fields(type:String.t) - Selector specifying which fields to include in a partial response. -
:key(type:String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token(type:String.t) - OAuth 2.0 token for the current user. -
:prettyPrint(type:boolean()) - Returns response with indentations and line breaks. -
:quotaUser(type:String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType(type:String.t) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol(type:String.t) - Upload protocol for media (e.g. "raw", "multipart").
-
-
opts(type:keyword()) - Call options
Returns
-
{:ok, %GoogleApi.Admin.Directory_v1.Model.UserPhoto{}}on success -
{:error, info}on failure
directory_users_photos_patch(connection, user_key, optional_params \\ [], opts \\ [])
View SourceSpecs
directory_users_photos_patch( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.Admin.Directory_v1.Model.UserPhoto.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
Patch Photo via Apiary Patch Orchestration
Parameters
-
connection(type:GoogleApi.Admin.Directory_v1.Connection.t) - Connection to server -
user_key(type:String.t) - Email or immutable ID of the user -
optional_params(type:keyword()) - Optional parameters-
:"$.xgafv"(type:String.t) - V1 error format. -
:access_token(type:String.t) - OAuth access token. -
:alt(type:String.t) - Data format for response. -
:callback(type:String.t) - JSONP -
:fields(type:String.t) - Selector specifying which fields to include in a partial response. -
:key(type:String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token(type:String.t) - OAuth 2.0 token for the current user. -
:prettyPrint(type:boolean()) - Returns response with indentations and line breaks. -
:quotaUser(type:String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType(type:String.t) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol(type:String.t) - Upload protocol for media (e.g. "raw", "multipart"). -
:body(type:GoogleApi.Admin.Directory_v1.Model.UserPhoto.t) -
-
-
opts(type:keyword()) - Call options
Returns
-
{:ok, %GoogleApi.Admin.Directory_v1.Model.UserPhoto{}}on success -
{:error, info}on failure
directory_users_photos_update(connection, user_key, optional_params \\ [], opts \\ [])
View SourceSpecs
directory_users_photos_update( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.Admin.Directory_v1.Model.UserPhoto.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
Add a photo for the user
Parameters
-
connection(type:GoogleApi.Admin.Directory_v1.Connection.t) - Connection to server -
user_key(type:String.t) - Email or immutable ID of the user -
optional_params(type:keyword()) - Optional parameters-
:"$.xgafv"(type:String.t) - V1 error format. -
:access_token(type:String.t) - OAuth access token. -
:alt(type:String.t) - Data format for response. -
:callback(type:String.t) - JSONP -
:fields(type:String.t) - Selector specifying which fields to include in a partial response. -
:key(type:String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token(type:String.t) - OAuth 2.0 token for the current user. -
:prettyPrint(type:boolean()) - Returns response with indentations and line breaks. -
:quotaUser(type:String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType(type:String.t) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol(type:String.t) - Upload protocol for media (e.g. "raw", "multipart"). -
:body(type:GoogleApi.Admin.Directory_v1.Model.UserPhoto.t) -
-
-
opts(type:keyword()) - Call options
Returns
-
{:ok, %GoogleApi.Admin.Directory_v1.Model.UserPhoto{}}on success -
{:error, info}on failure
directory_users_sign_out(connection, user_key, optional_params \\ [], opts \\ [])
View SourceSpecs
directory_users_sign_out(Tesla.Env.client(), String.t(), keyword(), keyword()) :: {:ok, nil} | {:ok, Tesla.Env.t()} | {:error, any()}
Sign a user out of all web and device sessions and reset their sign-in cookies. User will have to sign in by authenticating again.
Parameters
-
connection(type:GoogleApi.Admin.Directory_v1.Connection.t) - Connection to server -
user_key(type:String.t) - Identifies the target user in the API request. The value can be the user's primary email address, alias email address, or unique user ID. -
optional_params(type:keyword()) - Optional parameters-
:"$.xgafv"(type:String.t) - V1 error format. -
:access_token(type:String.t) - OAuth access token. -
:alt(type:String.t) - Data format for response. -
:callback(type:String.t) - JSONP -
:fields(type:String.t) - Selector specifying which fields to include in a partial response. -
:key(type:String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token(type:String.t) - OAuth 2.0 token for the current user. -
:prettyPrint(type:boolean()) - Returns response with indentations and line breaks. -
:quotaUser(type:String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType(type:String.t) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol(type:String.t) - Upload protocol for media (e.g. "raw", "multipart").
-
-
opts(type:keyword()) - Call options
Returns
-
{:ok, %{}}on success -
{:error, info}on failure
directory_users_undelete(connection, user_key, optional_params \\ [], opts \\ [])
View SourceSpecs
directory_users_undelete(Tesla.Env.client(), String.t(), keyword(), keyword()) :: {:ok, nil} | {:ok, Tesla.Env.t()} | {:error, any()}
Undelete a deleted user
Parameters
-
connection(type:GoogleApi.Admin.Directory_v1.Connection.t) - Connection to server -
user_key(type:String.t) - The immutable id of the user -
optional_params(type:keyword()) - Optional parameters-
:"$.xgafv"(type:String.t) - V1 error format. -
:access_token(type:String.t) - OAuth access token. -
:alt(type:String.t) - Data format for response. -
:callback(type:String.t) - JSONP -
:fields(type:String.t) - Selector specifying which fields to include in a partial response. -
:key(type:String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token(type:String.t) - OAuth 2.0 token for the current user. -
:prettyPrint(type:boolean()) - Returns response with indentations and line breaks. -
:quotaUser(type:String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType(type:String.t) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol(type:String.t) - Upload protocol for media (e.g. "raw", "multipart"). -
:body(type:GoogleApi.Admin.Directory_v1.Model.UserUndelete.t) -
-
-
opts(type:keyword()) - Call options
Returns
-
{:ok, %{}}on success -
{:error, info}on failure
directory_users_update(connection, user_key, optional_params \\ [], opts \\ [])
View SourceSpecs
directory_users_update(Tesla.Env.client(), String.t(), keyword(), keyword()) :: {:ok, GoogleApi.Admin.Directory_v1.Model.User.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
update user
Parameters
-
connection(type:GoogleApi.Admin.Directory_v1.Connection.t) - Connection to server -
user_key(type:String.t) - Email or immutable ID of the user. If ID, it should match with id of user object -
optional_params(type:keyword()) - Optional parameters-
:"$.xgafv"(type:String.t) - V1 error format. -
:access_token(type:String.t) - OAuth access token. -
:alt(type:String.t) - Data format for response. -
:callback(type:String.t) - JSONP -
:fields(type:String.t) - Selector specifying which fields to include in a partial response. -
:key(type:String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token(type:String.t) - OAuth 2.0 token for the current user. -
:prettyPrint(type:boolean()) - Returns response with indentations and line breaks. -
:quotaUser(type:String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType(type:String.t) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol(type:String.t) - Upload protocol for media (e.g. "raw", "multipart"). -
:body(type:GoogleApi.Admin.Directory_v1.Model.User.t) -
-
-
opts(type:keyword()) - Call options
Returns
-
{:ok, %GoogleApi.Admin.Directory_v1.Model.User{}}on success -
{:error, info}on failure
directory_users_watch(connection, optional_params \\ [], opts \\ [])
View SourceSpecs
directory_users_watch(Tesla.Env.client(), keyword(), keyword()) :: {:ok, GoogleApi.Admin.Directory_v1.Model.Channel.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
Watch for changes in users list
Parameters
-
connection(type:GoogleApi.Admin.Directory_v1.Connection.t) - Connection to server -
optional_params(type:keyword()) - Optional parameters-
:"$.xgafv"(type:String.t) - V1 error format. -
:access_token(type:String.t) - OAuth access token. -
:alt(type:String.t) - Data format for response. -
:callback(type:String.t) - JSONP -
:fields(type:String.t) - Selector specifying which fields to include in a partial response. -
:key(type:String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token(type:String.t) - OAuth 2.0 token for the current user. -
:prettyPrint(type:boolean()) - Returns response with indentations and line breaks. -
:quotaUser(type:String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType(type:String.t) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol(type:String.t) - Upload protocol for media (e.g. "raw", "multipart"). -
:customFieldMask(type:String.t) - Comma-separated list of schema names. All fields from these schemas are fetched. This should only be set when projection=custom. -
:customer(type:String.t) - Immutable ID of the G Suite account. In case of multi-domain, to fetch all users for a customer, fill this field instead of domain. -
:domain(type:String.t) - Name of the domain. Fill this field to get users from only this domain. To return all users in a multi-domain fill customer field instead." -
:event(type:String.t) - Event on which subscription is intended -
:maxResults(type:integer()) - Maximum number of results to return. -
:orderBy(type:String.t) - Column to use for sorting results -
:pageToken(type:String.t) - Token to specify next page in the list -
:projection(type:String.t) - What subset of fields to fetch for this user. -
:query(type:String.t) - Query string search. Should be of the form "". Complete documentation is at https: //developers.google.com/admin-sdk/directory/v1/guides/search-users -
:showDeleted(type:String.t) - If set to true, retrieves the list of deleted users. (Default: false) -
:sortOrder(type:String.t) - Whether to return results in ascending or descending order. -
:viewType(type:String.t) - Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the user. -
:body(type:GoogleApi.Admin.Directory_v1.Model.Channel.t) -
-
-
opts(type:keyword()) - Call options
Returns
-
{:ok, %GoogleApi.Admin.Directory_v1.Model.Channel{}}on success -
{:error, info}on failure