user_id (int): the user the change is being previewed for.permission_set_ids (list[uuid], optional): permission sets toremove_permission_set_ids (list[uuid], optional): permission sets toX-Organization-Id (int, optional): Override the org scoping themanage (admin) access to the specified organization.manage + manage_users (same as the assignment endpoint).current_permissions, projected_permissions (scope union per action),changes (per-action before/after, only for actions that change)data.curl --location --globoff 'https:///api/v2/users//permissions/preview' \
--header 'X-Organization-Id;' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data '{
"permission_set_ids": [
"3f1c9b2a-0000-0000-0000-000000000001",
"3f1c9b2a-0000-0000-0000-000000000002"
]
}'{
"success": true,
"message": "string",
"data": {
"user_id": 0,
"organization_id": 0,
"current_permissions": {
"agents": {
"view": [
"all"
],
"edit": [
"all"
],
"delete": [
"all"
],
"publish": [
"all"
],
"create": true
}
},
"projected_permissions": {
"agents": {
"view": [
"all"
],
"edit": [
"all"
],
"delete": [
"all"
],
"publish": [
"all"
],
"create": true
}
},
"changes": {
"property1": "string",
"property2": "string"
}
}
}