Class UsersResource.ListRequest
Retrieves a paginated list of either deleted users or all users in a domain.
Inheritance
Inherited Members
Namespace: Google.Apis.Admin.Directory.directory_v1
Assembly: Google.Apis.Admin.Directory.directory_v1.dll
Syntax
public class UsersResource.ListRequest : DirectoryBaseServiceRequest<Users>, IClientServiceRequest<Users>, IClientServiceRequest
Constructors
ListRequest(IClientService)
Constructs a new List request.
Declaration
public ListRequest(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
CustomFieldMask
A comma-separated list of schema names. All fields from these schemas are fetched. This should only be
set when projection=custom
.
Declaration
[RequestParameter("customFieldMask", RequestParameterType.Query)]
public virtual string CustomFieldMask { get; set; }
Property Value
Type | Description |
---|---|
string |
Customer
The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch
all users for a customer, use this field instead of domain
. You can also use the my_customer
alias
to represent your account's customerId
. The customerId
is also returned as part of the
Users resource. You must provide either the customer
or the
domain
parameter.
Declaration
[RequestParameter("customer", RequestParameterType.Query)]
public virtual string Customer { get; set; }
Property Value
Type | Description |
---|---|
string |
Domain
The domain name. Use this field to get users from only one domain. To return all domains for a customer
account, use the customer
query parameter instead. Either the customer
or the domain
parameter
must be provided.
Declaration
[RequestParameter("domain", RequestParameterType.Query)]
public virtual string Domain { get; set; }
Property Value
Type | Description |
---|---|
string |
Event
Event on which subscription is intended (if subscribing)
Declaration
[RequestParameter("event", RequestParameterType.Query)]
public virtual UsersResource.ListRequest.EventEnum? Event { get; set; }
Property Value
Type | Description |
---|---|
UsersResource.ListRequest.EventEnum? |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MaxResults
Maximum number of results to return.
Declaration
[RequestParameter("maxResults", RequestParameterType.Query)]
public virtual int? MaxResults { get; set; }
Property Value
Type | Description |
---|---|
int? |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
OrderBy
Property to use for sorting results.
Declaration
[RequestParameter("orderBy", RequestParameterType.Query)]
public virtual UsersResource.ListRequest.OrderByEnum? OrderBy { get; set; }
Property Value
Type | Description |
---|---|
UsersResource.ListRequest.OrderByEnum? |
PageToken
Token to specify next page in the list
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
Type | Description |
---|---|
string |
Projection
What subset of fields to fetch for this user.
Declaration
[RequestParameter("projection", RequestParameterType.Query)]
public virtual UsersResource.ListRequest.ProjectionEnum? Projection { get; set; }
Property Value
Type | Description |
---|---|
UsersResource.ListRequest.ProjectionEnum? |
Query
Query string for searching user fields. For more information on constructing user queries, see Search for Users.
Declaration
[RequestParameter("query", RequestParameterType.Query)]
public virtual string Query { get; set; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
ShowDeleted
If set to true
, retrieves the list of deleted users. (Default: false
)
Declaration
[RequestParameter("showDeleted", RequestParameterType.Query)]
public virtual string ShowDeleted { get; set; }
Property Value
Type | Description |
---|---|
string |
SortOrder
Whether to return results in ascending or descending order, ignoring case.
Declaration
[RequestParameter("sortOrder", RequestParameterType.Query)]
public virtual UsersResource.ListRequest.SortOrderEnum? SortOrder { get; set; }
Property Value
Type | Description |
---|---|
UsersResource.ListRequest.SortOrderEnum? |
ViewType
Whether to fetch the administrator-only or domain-wide public view of the user. For more information, see Retrieve a user as a non-administrator.
Declaration
[RequestParameter("viewType", RequestParameterType.Query)]
public virtual UsersResource.ListRequest.ViewTypeEnum? ViewType { get; set; }
Property Value
Type | Description |
---|---|
UsersResource.ListRequest.ViewTypeEnum? |
Methods
InitParameters()
Initializes List parameter list.
Declaration
protected override void InitParameters()