Provide method/way to obtain only the permissions that apply to the calling user
As Dimitri,
I want a method to obtain the current list of AuthorizationRules restricted to those that really concern the calling user (thus it should not include permissions for other users that the calling user might be able to see because (s)he is an admin),
So that I do not need to filter those rules on the client side.
Example:
When calling this method as [@dosse] (who is a member of the admins group) then it should contain:
{
"id": 2,
"userMask": "admins",
"isGroup": true,
"dataSpace": "*",
"artefactType": 0,
"artefactAgencyId": "*",
"artefactId": "*",
"artefactVersion": "*",
"permission": 4095
},
{
"id": 5,
"userMask": "[@dosse] email",
"isGroup": false,
"dataSpace": "*",
"artefactType": 0,
"artefactAgencyId": "*",
"artefactId": "*",
"artefactVersion": "*",
"permission": 4095
},
{
"id": 4020,
"userMask": "*",
"isGroup": false,
"dataSpace": "*",
"artefactType": 0,
"artefactAgencyId": "*",
"artefactId": "*",
"artefactVersion": "*",
"permission": 3
},
but it should NOT contain:
{
"id": 1,
"userMask": "admin",
"isGroup": false,
"dataSpace": "*",
"artefactType": 0,
"artefactAgencyId": "*",
"artefactId": "*",
"artefactVersion": "*",
"permission": 4095
},
{
"id": 3,
"userMask": "[@SSandrine] email",
"isGroup": false,
"dataSpace": "*",
"artefactType": 0,
"artefactAgencyId": "*",
"artefactId": "*",
"artefactVersion": "*",
"permission": 4095
},
{
"id": 4,
"userMask": "[@j3an-baptiste] email",
"isGroup": false,
"dataSpace": "*",
"artefactType": 0,
"artefactAgencyId": "*",
"artefactId": "*",
"artefactVersion": "*",
"permission": 4095
},
...
Edited by Jens Dossé