List of permissions
Returns information about permissions to manage the tag and view statistics. This data can be retrieved by the tag owner or a user with tag edit rights. If you don't have the edit permission, ask the tag owner to grant it to you.
To grant the permission, use the POST /management/v1/counter/{counterId}/grants method or the Yandex Metrica web interface. For more information, see Help.
Request syntax
counterId
: ID of the tag for which you want to view a list of permissions.
https://api-metrika.yandex.net/management/v1/counter/{counterId}/grants
? [callback=<string>]
callback | Callback function that processes the API response. |
callback | Callback function that processes the API response. |
Response format
{
"grants" : [ {
"user_login" : < string > ,
"user_uid" : < long > ,
"perm" : < grant_type > ,
"created_at" : < date > ,
"comment" : < string > ,
"partner_data_access" : < boolean >
}, ... ]
}
Parameters | Description |
---|---|
grants | Permission to manage the tag and view statistics. |
grants | |
user_login | Login of a user with tag management rights. This parameter contains an empty string if tag statistics are in public access ( |
user_uid | uid of a user with tag management rights. Parameter is 0 if tag statistics are in public access ( |
perm | Permission level. Possible values:
|
created_at | Date when the permission was granted in YYYY-MM-DD'T'hh:mm:ssZ format. |
comment | Arbitrary comment. The maximum number of characters is 255. |
partner_data_access | Access to the Monetization report group. The user can view reports and add dimensions and metrics from the Monetization group to other reports. If the user has edit rights, reports from the Monetization group are already available to them. Possible values:
|
Parameters | Description |
---|---|
grants | Permission to manage the tag and view statistics. |
grants | |
user_login | Login of a user with tag management rights. This parameter contains an empty string if tag statistics are in public access ( |
user_uid | uid of a user with tag management rights. Parameter is 0 if tag statistics are in public access ( |
perm | Permission level. Possible values:
|
created_at | Date when the permission was granted in YYYY-MM-DD'T'hh:mm:ssZ format. |
comment | Arbitrary comment. The maximum number of characters is 255. |
partner_data_access | Access to the Monetization report group. The user can view reports and add dimensions and metrics from the Monetization group to other reports. If the user has edit rights, reports from the Monetization group are already available to them. Possible values:
|