I try to update permissions for some users. Here is a req body:
{
"permissions": {
"permissions": {
"EDITOR": {
"members": [
"user:test1@gmail.com"
]
},
"VIEWER": {
"members": [
"user:test2@gmail.com"
]
}
}
}
}
and then i get Error: Got error "Forbidden", status - "403", body: {"error":{"code":403,"message":"Owner is not allowed to be modified","status":"PERMISSION_DENIED"}}
Even though i am NOT trying to modify the owner
I tried to modify the req body but it didnt help
You need to put always the OWNER because, in your request body, you are not specifying who is the OWNER.
Example:
{
"permissions": {
"permissions": {
"OWNER": {
"members": [
"user:owneremail@gmail.com"
]
},
"VIEWER": {
"members": [
"user:memberemail@gmail.com"
]
}
}
}
}