如何在 WSO2IS 中添加来自批量用户端点 "https://localhost:9443/t/carbon.super/scim2/Bulk" 的组织、mobileno、电子邮件
How to add organization,mobileno,email from bulk user endpoint "https://localhost:9443/t/carbon.super/scim2/Bulk" in WSO2IS
我使用“https://localhost:9443/t/carbon.super/scim2/Bulk
”将批量用户上传到 WSO2IS。如何将组织、电子邮件和手机号码添加到以下数据集。
这是我的数据对象。
{
"failOnErrors": 1,
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:BulkRequest"
],
"Operations": [
{
"method": "POST",
"path": "/Users",
"bulkId": "qwerty1",
"data": {
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
],
"userName": "Alexwso26.com",
"password": "12345678",
"name": {
"givenName": "Alex26 ",
"familyName": "Silva26"
},
"emails": [
{
"type": "home",
"value": "Alex26@g.com",
"primary": true
}
]
}
}
]
}
它工作正常。但是邮箱没有更新。
从您的用户创建负载中,它会更新用户的家庭电子邮件。如果您导航到 Management console -> Main menu -> Claims -> List -> "http://wso2.org/claims" -> Emails - Home Email-> Edit
并勾选 Supported by Default
,然后查看创建的用户的个人资料。可以看到给定的值已经更新了
更改电子邮件属性,如以下有效负载。然后你可以更新用户的 Email
属性。此外,以下有效负载包含手机号码和组织的属性格式。
{
"failOnErrors": 1,
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:BulkRequest"
],
"Operations": [
{
"method": "POST",
"path": "/Users",
"bulkId": "qwerty1",
"data": {
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
],
"userName": "Alexwso26.com",
"password": "12345678",
"name": {
"givenName": "Alex26 ",
"familyName": "Silva26"
},
"emails": [
{
"value": "Alex26@g.com",
"primary": true
}
],
"phoneNumbers": [
{
"value": "0771234567",
"type": "mobile"
}
],
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User" : {
"organization": "abc"
}
}
}
]
}
通过 SCIM 端点创建或管理 users/groups 时形成负载时请参考以下文档。
我使用“https://localhost:9443/t/carbon.super/scim2/Bulk
”将批量用户上传到 WSO2IS。如何将组织、电子邮件和手机号码添加到以下数据集。
这是我的数据对象。
{
"failOnErrors": 1,
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:BulkRequest"
],
"Operations": [
{
"method": "POST",
"path": "/Users",
"bulkId": "qwerty1",
"data": {
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
],
"userName": "Alexwso26.com",
"password": "12345678",
"name": {
"givenName": "Alex26 ",
"familyName": "Silva26"
},
"emails": [
{
"type": "home",
"value": "Alex26@g.com",
"primary": true
}
]
}
}
]
}
它工作正常。但是邮箱没有更新。
从您的用户创建负载中,它会更新用户的家庭电子邮件。如果您导航到 Management console -> Main menu -> Claims -> List -> "http://wso2.org/claims" -> Emails - Home Email-> Edit
并勾选 Supported by Default
,然后查看创建的用户的个人资料。可以看到给定的值已经更新了
更改电子邮件属性,如以下有效负载。然后你可以更新用户的 Email
属性。此外,以下有效负载包含手机号码和组织的属性格式。
{
"failOnErrors": 1,
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:BulkRequest"
],
"Operations": [
{
"method": "POST",
"path": "/Users",
"bulkId": "qwerty1",
"data": {
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
],
"userName": "Alexwso26.com",
"password": "12345678",
"name": {
"givenName": "Alex26 ",
"familyName": "Silva26"
},
"emails": [
{
"value": "Alex26@g.com",
"primary": true
}
],
"phoneNumbers": [
{
"value": "0771234567",
"type": "mobile"
}
],
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User" : {
"organization": "abc"
}
}
}
]
}
通过 SCIM 端点创建或管理 users/groups 时形成负载时请参考以下文档。