云SSO支持的SCIM_2.0接口 用户操作 创建用户 功能描述 创建新用户。 使用约束 userName必填,长度132位 name.formatted(真实姓名)必填,长度116位 emails必填,邮箱长度1256位,必须符合邮箱格式 phoneNumbers可选,电话号码必须是纯数字,长度1130位 用户名在账户下必须唯一 邮箱在系统中必须唯一 请求示例 plaintext curl header 'Authorization: Bearer ' header "ContentType: application/scim+json" X POST d '{ "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"], "userName": "user01", "name": { "formatted": "张三", "familyName": "张", "givenName": "三" }, "displayName": "张三", "emails": [ { "value": "user01@example.com", "type": "work", "primary": true } ], "phoneNumbers": [ { "value": "17777766777", "type": "work" } ], "active": true, "externalId": "external001" }' 返回示例 plaintext { "id": "024xx77e06ab4z14b8b867yy123bde8e", "externalId": "external001", "meta": { "resourceType": "User", "created": "20251020T01:26:49.754Z", "lastModified": "20251020T01:26:49.754Z", "location": "/sso/api/scim/v2/Users/024xx77e06ab4z14b8b867yy123bde8e" }, "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:User" ], "userName": "user01", "name": { "formatted": "张三", "givenName": "张三" }, "displayName": "张三", "active": true, "emails": [ { "value": "user01@example.com", "type": "work", "primary": true } ], "phoneNumbers": [ { "value": "17777766777", "type": "work" } ] }