Class UsersResource
- Namespace
- Google.Apis.Admin.Directory.directory_v1
- Assembly
- Google.Apis.Admin.Directory.directory_v1.dll
The "users" collection of methods.
public class UsersResource
- Inheritance
-
UsersResource
- Inherited Members
Constructors
UsersResource(IClientService)
Constructs a new resource.
public UsersResource(IClientService service)
Parameters
service
IClientService
Properties
Aliases
Gets the Aliases resource.
public virtual UsersResource.AliasesResource Aliases { get; }
Property Value
Photos
Gets the Photos resource.
public virtual UsersResource.PhotosResource Photos { get; }
Property Value
Methods
Delete(string)
Delete user
public virtual UsersResource.DeleteRequest Delete(string userKey)
Parameters
userKey
stringEmail or immutable ID of the user
Returns
Get(string)
retrieve user
public virtual UsersResource.GetRequest Get(string userKey)
Parameters
userKey
stringEmail or immutable ID of the user
Returns
Insert(User)
create user.
public virtual UsersResource.InsertRequest Insert(User body)
Parameters
body
UserThe body of the request.
Returns
List()
Retrieve either deleted users or all users in a domain (paginated)
public virtual UsersResource.ListRequest List()
Returns
MakeAdmin(UserMakeAdmin, string)
change admin status of a user
public virtual UsersResource.MakeAdminRequest MakeAdmin(UserMakeAdmin body, string userKey)
Parameters
body
UserMakeAdminThe body of the request.
userKey
stringEmail or immutable ID of the user as admin
Returns
Patch(User, string)
update user. This method supports patch semantics.
public virtual UsersResource.PatchRequest Patch(User body, string userKey)
Parameters
body
UserThe body of the request.
userKey
stringEmail or immutable ID of the user. If ID, it should match with id of user object
Returns
Undelete(UserUndelete, string)
Undelete a deleted user
public virtual UsersResource.UndeleteRequest Undelete(UserUndelete body, string userKey)
Parameters
body
UserUndeleteThe body of the request.
userKey
stringThe immutable id of the user
Returns
Update(User, string)
update user
public virtual UsersResource.UpdateRequest Update(User body, string userKey)
Parameters
body
UserThe body of the request.
userKey
stringEmail or immutable ID of the user. If ID, it should match with id of user object
Returns
Watch(Channel)
Watch for changes in users list
public virtual UsersResource.WatchRequest Watch(Channel body)
Parameters
body
ChannelThe body of the request.