Method: userRoles.get

  • This document provides details on how to retrieve a single user role by its ID using an HTTP GET request.

  • The request requires specifying both a user profile ID and a user role ID as path parameters.

  • The HTTP request body must be empty.

  • A successful response will contain an instance of a UserRole.

  • The request needs to be authorized with the https://www.googleapis.com/auth/dfatrafficking OAuth scope.

Gets one user role by ID.

HTTP request

GET https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/{profileId}/userRoles/{id}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
profileId

string (int64 format)

User profile ID associated with this request.

id

string (int64 format)

User role ID.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of UserRole.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/dfatrafficking