Class UsersResource.ListRequest
Lists users that are accessible to the current user. If two users have user roles on the same partner or advertiser, they can access each other. This method has unique authentication requirements. Read the prerequisites in our Managing Users guide before using this method. The "Try this method" feature does not work for this method.
Inheritance
Inherited Members
Namespace: Google.Apis.DisplayVideo.v4
Assembly: Google.Apis.DisplayVideo.v4.dll
Syntax
public class UsersResource.ListRequest : DisplayVideoBaseServiceRequest<ListUsersResponse>, IClientServiceRequest<ListUsersResponse>, IClientServiceRequest
Constructors
ListRequest(IClientService)
Constructs a new List request.
Declaration
public ListRequest(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Properties
Filter
Allows filtering by user fields. Supported syntax: * Filter expressions are made up of one or more
restrictions. * Restrictions can be combined by the logical operator AND. * A restriction has the form
of {field} {operator} {value}. * The displayName and email fields must use the HAS (:) operator.
- The
lastLoginTimefield must use either theLESS THAN OR EQUAL TO (<=)orGREATER THAN OR EQUAL TO (>=)operator. * All other fields must use theEQUALS (=)operator. Supported fields: assignedUserRole.advertiserId*assignedUserRole.entityType: This is synthetic field ofAssignedUserRoleused for filtering. Identifies the type of entity to which the user role is assigned. Valid values arePartnerandAdvertiser. *assignedUserRole.parentPartnerId: This is a synthetic field ofAssignedUserRoleused for filtering. Identifies the parent partner of the entity to which the user role is assigned. *assignedUserRole.partnerId*assignedUserRole.userRole*displayName*email*lastLoginTime(input in ISO 8601 format, orYYYY-MM-DDTHH:MM:SSZ) Examples: * The user withdisplayNamecontaining "foo":displayName:"foo"* The user withemailcontaining "bar":email:"bar"* All users with standard user roles:assignedUserRole.userRole="STANDARD"* All users with user roles for partner 123:assignedUserRole.partnerId="123"* All users with user roles for advertiser 123:assignedUserRole.advertiserId="123"* All users with partner level user roles:entityType="PARTNER"* All users with user roles for partner 123 and advertisers under partner 123:parentPartnerId="123"* All users that last logged in on or after 2023-01-01T00:00:00Z (format of ISO 8601):lastLoginTime>="2023-01-01T00:00:00Z"The length of this field should be no more than 500 characters. Reference our filterLISTrequests guide for more information.
Declaration
[RequestParameter("filter", RequestParameterType.Query)]
public virtual string Filter { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
OrderBy
Field by which to sort the list. Acceptable values are: * displayName (default) The default sorting
order is ascending. To specify descending order for a field, a suffix "desc" should be added to the
field name. For example, displayName desc.
Declaration
[RequestParameter("orderBy", RequestParameterType.Query)]
public virtual string OrderBy { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PageSize
Requested page size. Must be between 1 and 200. If unspecified will default to 100.
Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
PageToken
A token identifying a page of results the server should return. Typically, this is the value of
next_page_token returned from the previous call to ListUsers method. If not specified, the first page
of results will be returned.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
InitParameters()
Initializes List parameter list.
Declaration
protected override void InitParameters()