SCIM包示例
模式的例子
URL:https://yourintranet.interactgo.com/api/v2/scim/v2/Schemas
用户示例
URL:https://yourintranet.interactgo.com/api/v2/scim/v2/Users?filter=userName情商”(电子邮件保护)"
只需用你的URL替换你的intranet。interactgo.com。然后可以添加查找信息。
POST用户示例
URL:https://yourintranet.interactgo.com/api/v2/scim/v2/Users
只需用你的URL替换你的intranet。interactgo.com
包含除组(在用户配置文件中)、作业结束日期、所有urn:ietf:params:scim:schemas:core:2.0:组值和所有urn:ietf:params:scim:schemas:extension:interactsoftware:2.0:组值之外的所有值。
{"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User", "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"], "externalId": "(电子邮件保护)", "用户名":"(电子邮件保护)", "profileUrl": "https://www.google.com/myprofile", "active": true, "preferredLanguage": "en-GB", "locale": "en-GB", "timezone": "东部标准时间","title": "客户操作代理","userType": "内网用户","password": "Interact01!", "电子邮件":[{"primary": true, "type": "work", "value": "(电子邮件保护)”},{“初级”:假的,“类型”:“家”,“价值”:“(电子邮件保护)phonenumber“}]:[{“类型”:“移动”,“价值”:“+ 14055551212”},{“类型”:“工作”、“价值”:“+ 441619273333”},{“类型”:“家”,“价值”:“+ 14055553434”}],“ims”:[{“类型”:“skype”、“价值”:“skype聊天”},{“类型”:“聊天”,“价值”:“默认聊天”}],“照片”:[{“价值”:“https://previews.123rf.com/images/aquir/aquir1311/aquir131100316/23569861-sample-grunge-red-round-stamp.jpg”,“显示”:“测试用户图片”、“类型”:“照片”,“主要”:真正}],“地址”:[{“格式化”:"1 Main street, New York, NY 00101", "type": "work"}], "meta": {"resourceType": "User"}, "name": {"familyName": "Test1", "givenName": "GivenName1"}, "urn:ietf:params:scim:schema:extension:enterprise:2.0:User": {"department": "Customer Operations", "manager": {"$ref": "" displayName": null, "value": "(电子邮件保护)"}, "组织":"样本"},"urn:ietf:params:scim:schema:extension:interactsoftware:2.0:User": {"jobStartDate": "2020-03-06T01:00:00Z", "location": "泽西城","loginType": "SAML", "bio": "This is my bio with special characters // \\ \" \b\f\t\r\n
可点击文本, !£ #$%^&*()+-_=:;/?,.< >{}[]€ƒ“……†y < p >测试段< / p > < h >头1 < / h > ", "名称":{“标题”:“博士”、“缩写”:“小”。}, "pronouns": "He/His", "dateOfBirth": "1997-01-03T01:00:00Z", "linkedInId": "https://www.linkedin.com/in/user1", "twitterTag": "https://twitter.com/testuser1", "forcePasswordReset": false, "instagramTag": "https://instagram.com/testuser1", "facebookId": "https://facebook.com/testuser1"}, "urn:ietf:params:scim:schemas:extension:interactsoftwareadditionalfields:2.0:User": {"division": "Default division"}}
PATCH用户举例
https://yourintranet.interactgo.com/api/v2/scim/v2/Users/35259
只需用你的URL替换你的intranet。interactgo.com。此外,您还需要将35259替换为您想要在数据库中更改的记录的personid。您可以从get命令中获得此命令。
{"模式":[" urn: ietf: params: scim: api:消息:2.0:PatchOp”),“操作”:[{“人事处”:“取代”,“路径”:“语言环境”,“价值”:“en - us”},{“人事处”:“添加”,“路径”:“userType”、“价值”:“内部网用户”}]}
PATCH User -更复杂的例子
https://yourintranet.interactgo.com/api/v2/scim/v2/Users/35259
只需用你的URL替换你的intranet。interactgo.com。此外,您还需要将35259替换为您想要在数据库中更改的记录的personid。您可以从get命令中获得此命令。
**注意,给管理器的PATCH要求你从GET命令中为管理器传递“id”值
{"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"], "Operations": [{"op": "Replace", "path": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:manager", "value": "316"}, {"op": "Replace", "path": "email [type eq \"work\"]。Value ", " Value ": "(电子邮件保护)”},{“人事处”:“添加”,“路径”:“地址类型eq \“\”。格式化","value": "Toonsberry, OH"}, {"op": "Add", "path": "phoneNumbers[type eq \"work\"]。值”、“价值”:“440-555-1212”},{“人事处”:“添加”,“路径”:“externalId”、“价值”:“埃里克。}, {"op": "Add", "path": "urn:ietf:params:scim:schema:extension:enterprise:2.0:User:employeeNumber", "value": "1234"}, {"op": "Replace", "path": "urn:ietf:params:scim:schema:extension:enterprise:2.0:User:organization", "value": "JustRocks LLC "。}, {"op": "替换","path": "urn:ietf:params:scim:schema:扩展:企业:2.0:用户:部门","value": "Marketing"}, {"op": "替换","path": "urn:ietf:params:scim:schema:扩展:interactsoftware:2.0:用户:location", "value": "Sunnyville"}, {"op": "替换","path": "urn:ietf:params:scim:schema:扩展:interactsoftware:2.0:用户:loginType", "value": "SAML"}]}
PUT用户举例
https://yourintranet.interactgo.com/api/v2/scim/v2/Users/35259
只需用你的URL替换你的intranet。interactgo.com。此外,您还需要将35259替换为您想要在数据库中更改的记录的personid。您可以从get命令中获得此命令。另外,我发现你不需要提供personid…例如,你可以用:https://yourintranet.interactgo.com/api/v2/scim/v2/Users.
包含除组(在用户配置文件中)、作业结束日期、所有urn:ietf:params:scim:schemas:core:2.0:组值和所有urn:ietf:params:scim:schemas:extension:interactsoftware:2.0:组值之外的所有值。
{"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User", "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"], "externalId": "(电子邮件保护)", "用户名":"(电子邮件保护)", "profileUrl": "https://www.google.com/myprofile", "active": true, "preferredLanguage": "en-GB", "locale": "en-GB", "timezone": "东部标准时间","title": "客户操作代理","userType": "内网用户","password": "Interact01!", "电子邮件":[{"primary": true, "type": "work", "value": "(电子邮件保护)”},{“初级”:假的,“类型”:“家”,“价值”:“(电子邮件保护)phonenumber“}]:[{“类型”:“移动”,“价值”:“+ 14055551212”},{“类型”:“工作”、“价值”:“+ 441619273333”},{“类型”:“家”,“价值”:“+ 14055553434”}],“ims”:[{“类型”:“skype”、“价值”:“skype聊天”},{“类型”:“聊天”,“价值”:“默认聊天”}],“照片”:[{“价值”:“https://previews.123rf.com/images/aquir/aquir1311/aquir131100316/23569861-sample-grunge-red-round-stamp.jpg”,“显示”:“测试用户图片”、“类型”:“照片”,“主要”:真正}],“地址”:[{“格式化”:"1 Main street, New York, NY 00101", "type": "work", "primary": true}], "meta": {"resourceType": "User"}, "name": {"familyName": "Test1", "givenName": "GivenName1"}, "urn:ietf:params:scim:schema:extension:enterprise:2.0:User": {"department": "Customer Operations", "manager": {"$ref": "Users/275", "displayName": null, "value": "275"}, "organization": "Sample"}, "urn:ietf:params:scim:schema:extension:interactsoftware:2.0:User": {"jobStartDate": "2020-03-06T01:00:00Z", "location":"泽西城","loginType": "SAML", "bio": "This is my bio with special characters // \\ \\ " \b\f\t\r\n
可点击文本, !£ #$%^&*()+-_=:;/?,.< >{}[]€ƒ“……†y < p >测试段< / p > < h >头1 < / h > ", "名称":{“标题”:“博士”、“缩写”:“小”。}, "pronouns": "He/His", "dateOfBirth": "1997-01-03T01:00:00Z", "linkedInId": "https://www.linkedin.com/in/user1", "twitterTag": "https://twitter.com/testuser1", "forcePasswordReset": false, "instagramTag": "https://instagram.com/testuser1", "facebookId": "https://facebook.com/testuser1"}, "urn:ietf:params:scim:schemas:extension:interactsoftwareadditionalfields:2.0:User": {"division": "Default division"}}
获得集团
https://yourintranet.interactgo.com/api/v2/scim/v2/Groups
{"displayName": "Our Intranet Users", "id": "5291", "members": [], "meta": {"resourceType": "Group", "location": "Groups/5291"}, "schemas": ["urn:ietf:params:scim:schemas:core:2.0:Group", "urn:ietf:params:scim:schemas:extension:interactsoftware:2.0:Group"], "urn:ietf:params:scim:schemas:extension:interactsoftware:2.0:Group": {"externalId": "cc0db17f-6602-45f2-8cfc-b4650a9cd508", "groupType": "Group"}}
通过id获取组
https://yourintranet.interactgo.com/api/v2/scim/v2/Groups/id
{"displayName": "Our Intranet Users", "id": "5291", "members": [{"$ref": "Users/25158", "display": "Sri Nguyen", "type": "User", "value": 25158}, {"$ref": "Users/35069", "display": "User", "value": 35069}, {"$ref": "Users/35187", "display": "Test User", "type": "User", "value": 35187}], "meta": {"resourceType": "Group", "location": "Groups/5291"}, "schemas":["urn:ietf:params:scim:schemas:core:2.0:Group", "urn:ietf:params:scim:schemas:extension:interactsoftware:2.0:Group"], "urn:ietf:params:scim:schemas:extension:interactsoftware:2.0:Group": {"externalId": "cc0db17f-6602-45f2-8cfc-b4650a9cd508", "groupType": " Group"}}
POST组,没有用户
https://yourintranet.interactgo.com/api/v2/scim/v2/Groups
{"schemas": ["urn:ietf:params:scim:schema:core:2.0:Group", "urn:ietf:params:scim:schema:extension:interactsoftware:2.0:Group"], "meta": {"resourceType": "Group"}, "displayName": "TestSCIM-POSTGroup1", "members":[], "urn:ietf:params:scim:schema:extension:interactsoftware:2.0:Group": {"externalId": "5d471732ad3d5768e67f86859e329d46", "groupType": "Group"}}
POST 1用户组
https://yourintranet.interactgo.com/api/v2/scim/v2/Groups
{"schemas": ["urn:ietf:params:scim:schema:core:2.0:Group", "urn:ietf:params:scim:schema:extension:interactsoftware:2.0:Group"], "meta": {"resourceType": "Group"}, "displayName": "TestSCIM-POSTGroup2", "members":[{"$ref": "Users/25158", "display": "Sri Nguyen", "type": "User", "value": "25158"}], "urn:ietf:params:scim:schema:extension:interactsoftware:2.0:Group": {"externalId": "113581b2fe04e30e623a0fe28e293e02", "groupType": "Group"}}
PUT组,1个用户
https://yourintranet.interactgo.com/api/v2/scim/v2/Groups/ {{group3}}
{"schemas": ["urn:ietf:params:scim:schema:core:2.0:Group", "urn:ietf:params:scim:schema:extension:interactsoftware:2.0:Group"], "meta": {"resourceType": "Group"}, "displayName": "TestSCIM-POSTGroup3", "members":[{"$ref": "Users/35069", "display": "David Wilson", "type": "User", "value": "35069"}], "urn:ietf:params:scim:schema:extension:interactsoftware:2.0:Group": {"externalId": "113581b2fe04e30e623a0fe28e293e02", "groupType": "Group"}}
PATCH组-添加用户:
https://yourintranet.interactgo.com/api/v2/scim/v2/Groups/ {{group3}}
{"模式":[" urn: ietf: params: scim: api:消息:2.0:PatchOp”),“操作”:[{“人事处”:“添加”,“价值”:{“成员”:[{“价值”:“35187”,“显示”:“testuser1 " }] } }] }
PATCH组-删除用户
https://yourintranet.interactgo.com/api/v2/scim/v2/Groups/ {{group3}}
{"schema ": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"], "Operations": [{"op": "remove", "path": "members[value eq \"35069\"]"}]}
PATCH组-删除用户(另一种方式):以编程方式,“uid”可能很难处理。所以你也可以使用这种格式来删除用户:
删除组
https://yourintranet.interactgo.com/api/v2/scim/v2/Groups/ {{group3}}
更新 5个月前