Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Add Multiple Resource Permissions for Resource has no effect

Using the API, I created a role. It is blank - no permissions at all. I then built a resourcePermission object with two paths: the org, / receiving a "get", and the /application receiving both "get" and "put". When I POSTed the call, I received a 201 in return, but no permissions were added.

I can add a permission to an individual resource with no issue, but the call for multiple resources doesn't appear to work.

URL: https://api.enterprise.apigee.com/v1/organizations/{_organization.Name}/userroles/{_role}/resourcepe...

json body:

{"resourcePermission":[{"path":"/","permissions":["get"]},{"path":"/applications","permissions":["get","put"]}]}

I tried making the second path to be /applications/ and that didn't help. I am Organization Admin, so I should be able to do this. Any help would be most appreciated.

0 2 247
2 REPLIES 2
Top Solution Authors