Hi
Im trying to create permissions for a custom-role on shared flows and facing an issue when verifying those roles.
My end goal is to create a custom role such that any org user who belongs to that custom role should be able to perform edit and delete only on the shared flows he/she creates. Is this possible ? I see this works as expected with proxies, but not with shared flows. And in this process I found an issue which the following describes.
Here are my steps
- Created permissions using Management API – Here are the permissions related to shared flows on custom-role
{
"organization": "ORG_NAME",
"path": "/sharedflows",
"permissions": [
"put",
"get"
]
},
{
"organization": "ORG_NAME",
"path": "/sharedflows/*",
"permissions": [
"put",
"get"
]
},
{
"organization": "ORG_NAME",
"path": "/sharedflows/*/revisions/*",
"permissions": [
"delete",
"put",
"get"
]
},
{
"organization": "ORG_NAME",
"path": "/sharedflows/*/revisions/*/deploy",
"permissions": [
"delete",
"put",
"get"
]
},
{
"organization": "ORG_NAME",
"path": "/environments/*/sharedflows/*/revisions/*/deployments",
"permissions": [
"delete",
"put",
"get"
]
}
-
User assigned to the newly created custom role
-
User logged in to Edge and created shared flow
-
Administrator made a management API call to see how the permissions look for newly created shared flow
{
"organization": "ORG_NAME",
"path": "/sharedflows/Shared-Flow-Created-by-CustomRole/undefined",
"permissions": [
"delete",
"put",
"get"
]
},
please note ‘undefined’ in the path. Not sure if this is a bug or if Im doing something incorrectly. Also Please let me know if my permissions are incorrect for managing shared flows. The objective is to create a custom role such that any org user who belongs to that custom role should be able to perform edit and delete only on the shared flows he/she creates.
Thank you!