How to give access to "key Value Maps" under environment Configuation for a custom role ?

Hi,

I have Created a custom Role which I want to give the access to EDIT/VIEW/DELETE "Key value Maps" under environment configuration. Currently that role is not able to access the "Key Value Maps" configuration. Please Help me out.

Have attached the screenshot which shows No EDIT button for Key Value Map screen when I logged in as Custom Role.

6373-access.png

Solved Solved
0 1 546
1 ACCEPTED SOLUTION

Hi @Mahesh H

You can use this Management API

Your payload will be

{
 "resourcePermission" : [ 
   {
    "path" : "/environments/*/keyvaluemaps",
    "permissions" : [ "get","put", "delete"]
   }
  ]
}

NOTE: If you want to just give access to a particular environment, then you can provide that in the payload. For example, you want to give full access to "test" env KVMs but only view access in "prod" env, then

{
 "resourcePermission" : [ 
   {
    "path" : "/environments/test/keyvaluemaps",
    "permissions" : [ "get","put", "delete"]
   },
   {
    "path" : "/environments/prod/keyvaluemaps",
    "permissions" : [ "get"]
   }
  ]
}

View solution in original post

1 REPLY 1

Hi @Mahesh H

You can use this Management API

Your payload will be

{
 "resourcePermission" : [ 
   {
    "path" : "/environments/*/keyvaluemaps",
    "permissions" : [ "get","put", "delete"]
   }
  ]
}

NOTE: If you want to just give access to a particular environment, then you can provide that in the payload. For example, you want to give full access to "test" env KVMs but only view access in "prod" env, then

{
 "resourcePermission" : [ 
   {
    "path" : "/environments/test/keyvaluemaps",
    "permissions" : [ "get","put", "delete"]
   },
   {
    "path" : "/environments/prod/keyvaluemaps",
    "permissions" : [ "get"]
   }
  ]
}