Permission information
Returns information on the specified permission for managing the tag and viewing 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
: Tag ID
https://api-metrika.yandex.net/management/v1/counter/{counterId}/grant
? [user_login=<string>]
user_login | User login |
user_login | User login |
Sample request
https://api-metrika.yandex.net/management/v1/counter/2215573/grant?user_login=api%2Dmetrika2
Response format
{
"grant" : {
"user_login" : < string > ,
"user_uid" : < long > ,
"perm" : < grant_type > ,
"created_at" : < date > ,
"comment" : < string > ,
"partner_data_access" : < boolean >
}
}
Parameters | Description |
---|---|
grant | Permission to manage the tag and view statistics. |
grant | |
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 |
---|---|
grant | Permission to manage the tag and view statistics. |
grant | |
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:
|