This document describes how to create and authorize sub-users. If you have never used Tencent Cloud Access Management (CAM), read this document for more information on the configuration.
Tencent Push Notification Service uses CAM for permission management. You need to authorize applications, create sub-users, and grant application permissions to the sub-users. For detailed directions, see the following sections.
Policy Name | Permission Scope |
---|---|
QcloudTPNSFullAccess | All permissions on all the applications under the root account |
QcloudTPNSReadOnlyAccess | Data read and push permissions on all applications under the root account |
Note:
- Enter an easy-to-remember policy name.
- Copy the code provided in this document and replace the account ID and Access_ID in it with your own account ID and Access_ID, which can be found on the account information page under the current root account and the Tencent Push Notification Service product management page in the console respectively.
Copy the following syntax code:
{
"version": "2.0",
"statement": [
{
"action": [
"tpns:Describe*",
"tpns:CancelPush",
"tpns:DownloadPushPackage",
"tpns:CreatePush",
"tpns:UploadPushPackage"
],
"resource": [
"qcs::tpns::uin/1000000000:app/1500000000"
],
"effect": "allow"
},
{
"action": [
"tpns:Describe*"
],
"resource": [
"qcs::tpns::uin/1000000000:/*"
],
"effect": "allow"
}
]
}
Replace parameters in the syntax code as follows:
1000000000
in the syntax above with it.
Note:If your current login account is a collaborator or sub-account, you need to get the account ID from the owner of the root account that grants you permissions.
Access_ID
: go to the Product Management page in the Tencent Push Notification Service console, copy the Access_ID
of the application whose permissions you want to grant, and replace 1500000000
in the syntax above with it. If you want to grant permissions of multiple applications, you can change resource
to:"qcs::tpns::uin/1000000000:app/{Application Access_ID 1}"
,"qcs::tpns::uin/1000000000:app/{Application Access_ID 2}"
Note:Please delete "{" and "}" in actual use. For detailed directions, see Advanced Custom Configuration.
Was this page helpful?