Custom role for Reporting

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?

Solved Solved
0 3 285
1 ACCEPTED SOLUTION

@Mark Eccles was able to resolve this issue. Thanks! An additional permission (which was not documented at https://docs.apigee.com/api-platform/system-administration/permissions#analytics) was required:

{
	"organization": "myorg",
	"path": "/environments/*/analytics/admin/*",
	"permissions": [
		"get"
	]
}

@docs, could you please append this role to the page?

View solution in original post

3 REPLIES 3

Update: The documentation team has now corrected the POST issue on the documentation page.

@Mark Eccles was able to resolve this issue. Thanks! An additional permission (which was not documented at https://docs.apigee.com/api-platform/system-administration/permissions#analytics) was required:

{
	"organization": "myorg",
	"path": "/environments/*/analytics/admin/*",
	"permissions": [
		"get"
	]
}

@docs, could you please append this role to the page?

Will do! Thanks, @Cladius Fernando.