For Workes & Pages, what is the name of the domain?
domainsafe.au
What is the error number?
10000
What is the error message?
Authentication error
What is the issue or error you’re encountering
When I try to create a resource group using the API I get an Authentication error.
What steps have you taken to resolve the issue?
I have tried reading the documentation and searching the community, but there doesn’t appear to be a lot of information on what I’m trying to do.
What are the steps to reproduce the issue?
I am creating a POST request to the Resource Groups endpoint:
https://api.cloudflare.com/client/v4/accounts/{account_id}/iam/resource_groups
I have swapped the account_id for the correct value (it works with other account-level calls).
My request body is:
request = {
scope: {
key: ‘com.cloudflare.api.account.{account_id}’,
objects: [
{ key: ‘com.cloudflare.api.account.zone.{zone_id}’ },
]
}
}
I am assuming this is the correct first step towards allowing a member in the account view and edit DNS settings for a selected group of zones.
What am I doing wrong?
Thanks for your help.
Are you the superadmin on the account? The 10k error indicates a permissions issue.
Thanks, @cloonan. Yes, I am using the superadmin API token with the following permissions:
- DOMAINSAFE - Email Routing Addresses:Edit, Account Settings:Edit
- All zones - Email Routing Rules:Edit, Zone Settings:Edit, Zone:Edit, DNS:Edit
- All users - Memberships:Edit, Memberships:Read, User Details:Edit
Can you try again and let me know if you still encounter this issue?
I am still getting the same response:
status=403,
reason_phrase="Forbidden",
response_body="{\"success\":false,\"errors\":[{\"code\":10000,\"message\":\"Authentication error\"}]}\n"
Thank you for trying. Can you create an Account ticket and share your ticket number here? You can open an Account ticket here, https://dash.cloudflare.com/?to=/:account/support
Thanks, @cloonan. Does opening a ticket require a Business subscription?
1 Like
No, customers on every plan type can open account, billing and registrar tickets
Apologies, @cloonan, I misread.
Support ticket # 01231642 created.
1 Like
Our team has responded to your inquiry in ticket 01231642.
system
Closed
11
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.