Thanks for quick reply. Tested and works.
So, it mean in case I need to have User Group which has to have access just for certain Management Zones inside some Environments, I have to use two steps approach:
1. Create Group
2. Adjust Groups access regarding Management Zones
Correct?
Some remakrs / clarification request if possible:
I had a group defined as:
{
"isClusterAdminGroup": false,
"id": "test",
"name": "Test",
"ldapGroupNames": [
"test"
],
"accessRight": {
"VIEWER": [
"0d267653-6cb1-429f-a5bb-a04afb247e18",
"9fe2a41e-b402-4a47-b577-9fa64cadd69c"
],
"MANAGE_SETTINGS": [
"0d267653-6cb1-429f-a5bb-a04afb247e18"
]
}
}
I used /groups/managementZones with following content:
{
"groupId": "test",
"mzPermissionsPerEnvironment": [
{
"environmentUuid": "19000021-de09-4ea6-8076-81c0163c9c7f",
"mzPermissions": [
{
"mzId": "3477049003423719658",
"permissions": [
"VIEW_SENSITIVE_REQUEST_DATA",
"VIEWER",
"LOG_VIEWER"
]
}
]
},
{
"environmentUuid": "9fe2a41e-b402-4a47-b577-9fa64cadd69c",
"mzPermissions": []
},
{
"environmentUuid": "0d267653-6cb1-429f-a5bb-a04afb247e18",
"mzPermissions": [
{
"mzId": "1213888254333099543",
"permissions": [
"VIEWER",
"REPLAY_SESSION_DATA"
],
"mzId": "-3471389981007631349",
"permissions": [
"VIEW_SENSITIVE_REQUEST_DATA",
"VIEWER",
"LOG_VIEWER"
]
}
]
}
]
}
In UI I see excatly what is defined in the JSON above.
However, output of PUT groups/test shows same content as above (with two Environments)
PUT groups/managementZones/test shows content as expected (including empty “permissions” for not defined Environments and Management Zones (does it mean no access or inheritance from definitions above?