Hi,
I’ve been referring to the Permissions list to create a custom role which will impart access to creating custom reports. I ran into the following 2 issues.
The Permissions page lists the below combination
| /environments/*/analytics/admin | POST |
|---|
However, the api call returns the following error:
{
"code": "resources.InvalidPermission",
"message": "Permission should be either get,put or delete.",
"contexts": []
}
I have used the “Send Feedback” option on the documentation page to report this as well.
And even after converting this Post to Put and using all the mentioned relevant permissions as below
{
"resourcePermission": [
{
"organization": "myorg",
"path": "/",
"permissions": [
"get"
]
},
{
"organization": "myorg",
"path": "/*",
"permissions": []
},
{
"organization": "myorg",
"path": "/environments",
"permissions": [
"get"
]
},
{
"organization": "myorg",
"path": "/userroles",
"permissions": [
"get"
]
},
{
"organization": "myorg",
"path": "/environments/*/analytics/admin",
"permissions": [
"put"
]
},
{
"organization": "myorg",
"path": "/environments/*/analytics/exports",
"permissions": [
"get",
"put"
]
},
{
"organization": "myorg",
"path": "/environments/*/analytics/exports/*",
"permissions": [
"get"
]
},
{
"organization": "myorg",
"path": "/analytics/datastores",
"permissions": [
"get",
"put"
]
},
{
"organization": "myorg",
"path": "/analytics/datastores/*",
"permissions": [
"get"
]
},
{
"organization": "myorg",
"path": "/analytics/datastoreConsumers",
"permissions": [
"get",
"put",
"delete"
]
},
{
"organization": "myorg",
"path": "/reports",
"permissions": [
"get",
"put"
]
},
{
"organization": "myorg",
"path": "/reports/*",
"permissions": [
"get",
"put",
"delete"
]
}
]
}
I see the following error on the Custom Reports page
Error fetching Schemav2
Insufficient permissions.
Any pointers?