| Description: | Replaces the current policy of a single user in the realm of a Qeo administrator |
| URL Structure: | https://my.qeo.org/qeo-rest-service/v1/realms/{id}/policy |
| HTTP Method: | POST |
| Parameters: |
HTTP Authorization Path parameter: Body: Contains a list of policy rules and associated access rights of a single user in the realm in JSON format: - All policy rules of the user in the realm will be replaced with the provided policy content. Parameters on user level: Parameters on policy level: Request Example https://my.qeo.org/qeo-rest-service/v1/realms/103/policy
{
"user":5,
"policy":[{
"name":"my::hello::world::topic3::*",
"read_access":{
"users":[4,5,6]
},
"write_access":{
"users":[5]
}
},{
"name":"my::hello::world::topic2::*",
"read_access":{
"users":[4]
},
"write_access":null
}]
}
|
| Response: |
HTTP 200 OK Body: Contains a list of users with their list of policy rules and associated access rights in JSON format: The returned parameters on user level: Response Example {
"user":5
"type":"user",
"policy":[{
"name":"my::hello::world::topic3::*",
"users":[5],
"realm":103,
"type":"policy_rule"
"read_access":{
"users":[4,5,6]
},
"write_access":{
"users":[6]
}
},{
"name":"my::hello::world::topic2::*",
"users":[5],
"realm":103,
"type":"policy_rule"
"read_access":{
"users":[4]
},
"write_access":null
}]
}
|