All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.directory.Directory.Users.html Maven / Gradle / Ivy

There is a newer version: directory_v1-rev20240709-2.0.0
Show newest version






Directory.Users (Admin SDK API directory_v1-rev20220125-1.32.1)












com.google.api.services.directory

Class Directory.Users

  • Enclosing class:
    Directory


    public class Directory.Users
    extends Object
    The "users" collection of methods.
    • Constructor Detail

      • Users

        public Users()
    • Method Detail

      • delete

        public Directory.Users.Delete delete(String userKey)
                                      throws IOException
        Deletes a user. Create a request for the method "users.delete". This request holds the parameters needed by the admin server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        userKey - Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Directory.Users.Get get(String userKey)
                                throws IOException
        Retrieves a user. Create a request for the method "users.get". This request holds the parameters needed by the admin server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        userKey - Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.
        Returns:
        the request
        Throws:
        IOException
      • list

        public Directory.Users.List list()
                                  throws IOException
        Retrieves a paginated list of either deleted users or all users in a domain. Create a request for the method "users.list". This request holds the parameters needed by the admin server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Returns:
        the request
        Throws:
        IOException
      • makeAdmin

        public Directory.Users.MakeAdmin makeAdmin(String userKey,
                                                   UserMakeAdmin content)
                                            throws IOException
        Makes a user a super administrator. Create a request for the method "users.makeAdmin". This request holds the parameters needed by the admin server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        userKey - Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.
        content - the UserMakeAdmin
        Returns:
        the request
        Throws:
        IOException
      • patch

        public Directory.Users.Patch patch(String userKey,
                                           User content)
                                    throws IOException
        Updates a user using patch semantics. The update method should be used instead, since it also supports patch semantics and has better performance. This method is unable to clear fields that contain repeated objects (`addresses`, `phones`, etc). Use the update method instead. Create a request for the method "users.patch". This request holds the parameters needed by the admin server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        userKey - Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.
        content - the User
        Returns:
        the request
        Throws:
        IOException
      • signOut

        public Directory.Users.SignOut signOut(String userKey)
                                        throws IOException
        Signs a user out of all web and device sessions and reset their sign-in cookies. User will have to sign in by authenticating again. Create a request for the method "users.signOut". This request holds the parameters needed by the admin server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        userKey - 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.
        Returns:
        the request
        Throws:
        IOException
      • update

        public Directory.Users.Update update(String userKey,
                                             User content)
                                      throws IOException
        Updates a user. This method supports patch semantics, meaning you only need to include the fields you wish to update. Fields that are not present in the request will be preserved, and fields set to `null` will be cleared. Create a request for the method "users.update". This request holds the parameters needed by the admin server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        userKey - Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.
        content - the User
        Returns:
        the request
        Throws:
        IOException
      • aliases

        public Directory.Users.Aliases aliases()
        An accessor for creating requests from the Aliases collection.

        The typical use is:

            Directory admin = new Directory(...);
            Directory.Aliases.List request = admin.aliases().list(parameters ...)
         
        Returns:
        the resource collection
      • photos

        public Directory.Users.Photos photos()
        An accessor for creating requests from the Photos collection.

        The typical use is:

            Directory admin = new Directory(...);
            Directory.Photos.List request = admin.photos().list(parameters ...)
         
        Returns:
        the resource collection

Copyright © 2011–2022 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy