dfareporting.user Roles.list

GET {{baseUrl}}/userprofiles/:profileId/userRoles?accountUserRoleOnly=<boolean>&ids=<string>&ids=<string>&maxResults=<integer>&pageToken=<string>&searchString=<string>&sortField=<string>&sortOrder=<string>&subaccountId=<string>&$.xgafv=<string>&access_token=<string>&alt=<string>&callback=<string>&fields=<string>&key=<string>&oauth_token=<string>&prettyPrint=<boolean>&quotaUser=<string>&upload_protocol=<string>&uploadType=<string>

Retrieves a list of user roles, possibly filtered. This method supports paging.

Request Params

KeyDatatypeRequiredDescription
accountUserRoleOnlystringSelect only account level user roles not associated with any specific subaccount.
idsstringSelect only user roles with the specified IDs.
idsstringSelect only user roles with the specified IDs.
maxResultsstringMaximum number of results to return.
pageTokenstringValue of the nextPageToken from the previous result page.
searchStringstringAllows searching for objects by name or ID. Wildcards () are allowed. For example, "userrole2015" will return objects with names like "userrole June 2015", "userrole April 2015", or simply "userrole 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "userrole" will match objects with name "my userrole", "userrole 2015", or simply "userrole".
sortFieldstringField by which to sort the list.
sortOrderstringOrder of sorted results.
subaccountIdstringSelect only user roles that belong to this subaccount.
$.xgafvstringV1 error format.
access_tokenstringOAuth access token.
altstringData format for response.
callbackstringJSONP
fieldsstringSelector specifying which fields to include in a partial response.
keystringAPI 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_tokenstringOAuth 2.0 token for the current user.
prettyPrintstringReturns response with indentations and line breaks.
quotaUserstringAvailable to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocolstringUpload protocol for media (e.g. "raw", "multipart").
uploadTypestringLegacy upload protocol for media (e.g. "media", "multipart").

RESPONSES

status: OK

{&quot;kind&quot;:&quot;in sit elit irure&quot;,&quot;nextPageToken&quot;:&quot;ut veniam officia nostrud&quot;,&quot;userRoles&quot;:[{&quot;accountId&quot;:&quot;reprehenderit occaecat&quot;,&quot;defaultUserRole&quot;:true,&quot;id&quot;:&quot;aliqua Excepteur proident commodo ipsum&quot;,&quot;kind&quot;:&quot;tempor Duis dolor cupidatat aliqua&quot;,&quot;name&quot;:&quot;exercitation ut anim sint Lorem&quot;,&quot;parentUserRoleId&quot;:&quot;sunt&quot;,&quot;permissions&quot;:[{&quot;availability&quot;:&quot;ACCOUNT_BY_DEFAULT&quot;,&quot;id&quot;:&quot;dolor anim&quot;,&quot;kind&quot;:&quot;tempor aliquip&quot;,&quot;name&quot;:&quot;dolore adipisicing&quot;,&quot;permissionGroupId&quot;:&quot;dolore occaecat nulla ut exercitation&quot;},{&quot;availability&quot;:&quot;SUBACCOUNT_AND_ACCOUNT_BY_DEFAULT&quot;,&quot;id&quot;:&quot;consequat ad l&quot;,&quot;kind&quot;:&quot;aute proident dolor&quot;,&quot;name&quot;:&quot;non&quot;,&quot;permissionGroupId&quot;:&quot;nisi in&quot;}],&quot;subaccountId&quot;:&quot;est non occaecat&quot;},{&quot;accountId&quot;:&quot;do dolor pariatur Duis&quot;,&quot;defaultUserRole&quot;:true,&quot;id&quot;:&quot;eu sit&quot;,&quot;kind&quot;:&quot;sint dolore voluptate&quot;,&quot;name&quot;:&quot;incididunt amet&quot;,&quot;parentUserRoleId&quot;:&quot;elit in incididunt&quot;,&quot;permissions&quot;:[{&quot;availability&quot;:&quot;ACCOUNT_BY_DEFAULT&quot;,&quot;id&quot;:&quot;fugiat qui incididunt&quot;,&quot;kind&quot;:&quot;magna&quot;,&quot;name&quot;:&quot;minim magna mollit&quot;,&quot;permissionGroupId&quot;:&quot;sunt anim&quot;},{&quot;availability&quot;:&quot;SUBACCOUNT_AND_ACCOUNT_ALWAYS&quot;,&quot;id&quot;:&quot;qui et reprehenderit&quot;,&quot;kind&quot;:&quot;do&quot;,&quot;name&quot;:&quot;tempor nulla&quot;,&quot;permissionGroupId&quot;:&quot;labore aliquip&quot;}],&quot;subaccountId&quot;:&quot;ipsum sunt aliqua voluptate&quot;}]}