云SSO支持的SCIM_2.0接口 PATCH更新用户组 功能描述 使用PATCH方法部分更新用户组信息。 使用约束 {id}必传,为用户组的UUID 支持的操作:add、replace、remove 支持修改的字段:displayName、members、externalId remove操作支持: 带value:选择性删除指定成员 不带value:删除所有成员 请求示例 示例1:向用户组添加成员 plaintext curl header 'Authorization: Bearer ' header "ContentType: application/scim+json" X PATCH d '{ "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"], "Operations": [ { "op": "add", "path": "members", "value": [ { "value": "u00vrs1l19d6gbsi5", "$ref": "/scim/v2/Users/u00vrs1l19d6gbsi5", "display": "用户01", "type": "User" } ] } ] }' 示例2:从用户组移除指定成员 plaintext curl header 'Authorization: Bearer ' header "ContentType: application/scim+json" X PATCH d '{ "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"], "Operations": [ { "op": "remove", "path": "members", "value": [ { "value": "u00vrs1l19d6gbsi5" } ] } ] }' 示例3:移除用户组所有成员 plaintext curl header 'Authorization: Bearer ' header "ContentType: application/scim+json" X PATCH d '{ "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"], "Operations": [ { "op": "remove", "path": "members" } ] }' 示例4:替换用户组名称 plaintext curl header 'Authorization: Bearer ' header "ContentType: application/scim+json" X PATCH d '{ "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"], "Operations": [ { "op": "replace", "path": "displayName", "value": "新的组名" } ] }'