我正在使用以下端点发送 JSON 请求正文以在 Oracle 云应用程序https://servername.fa.us2.oraclecloud.com/hcmRestApi/scim/Users中创建用户
我可以创建一个用户,如果我没有在请求中传递选项“角色”json 数组元素。但我确实将它与系统中存在的角色一起传递。我正在低于错误-
{
"Errors": [
{
"description": "You can't use the roles attribute in the payload. (ASE-4335076)",
"code": "400"
}
]
}
要求-
{
"schemas":[
"urn:scim:schemas:core:2.0:User"
],
"roles": [
{
"id": "E3A40F5AB13D90D7E040F00AC6466664"
}
],
"name":{
"familyName":"Manik",
"givenName":"Jones"
},
"active":true,
"userName":"KTMANIK_OPERATIONS",
"password":"Welcome123",
"emails":[
{
"primary":true,
"value":"ktmanikk@oracle.com",
"type":"W"
}
],
"displayName":"Manik Jones",
"externalId":"554434"
}