Error code -80028 while update room configuration
Hi,
I'm trying to update a room configuration, especially the admin user IDs and admin group IDs. The room has no inherited permissions (inheritedPermissions == false). While trying to manipulate the admin users and groups using route PUT /nodes/rooms/{roomId}/config I always get a HTTP 400 error with the following response:
{ "code": 400, "message": "Bad Request", "debugInfo": "Due to existing dependency the input must be null: Admin IDs", "errorCode": -80028 }
This also occurs when adminGroupIds or takeOverPermissions is set in the request body. When I add "inheritPermissions": false to the request, the system informs me that permission inheritance is already disabled:
{ "code": 400, "message": "Bad Request", "debugInfo": "Room inheritance already disabled", "errorCode": -40016 }
Although I'm aware of the routes PUT /nodes/rooms/{roomId}/users and PUT /nodes/rooms/[roomId}/groups, I'm wondering if there is a possibility to update only the room's admin users or groups without querying all user / group permissions first and passing them back to DRACOON with slightly modifications to update the admin users / groups.
This behaviour can be checked in Swagger as well.
Thanks,
Sebastian
-
Offizieller Kommentar
Hi Sebastian,
setting admin users or admin groups with API PUT /nodes/rooms/{id}/config is only possible when removing previously-enabled inheritance since in that case a situation without admin user might occur. Trying to set admin users or admin groups when enabling inheritance or keeping the current state is not possible.
The intended API for changing permissions of users or groups is PUT /nodes/rooms/{id}/users (or .../groups respectively). You do not need to query all users/groups in advance but may provide only users/groups where permissions change (or are newly added) in the request body. This requests overwrites all previously existing permissions for that user or group but does not revoke permissions of other users or groups that are not part of that request.
Cheers,
FlorianAktionen für Kommentare
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare