rest - 如何使用 Create User API 在 Oracle 云应用程序中创建用户时传递角色信息
问题描述
我正在使用以下端点发送 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"
}
解决方案
推荐阅读
- apache-kafka - 时间戳与 avro 架构
- linux - 有人可以向我解释一下“read var1 _ < <(ls -1l | wc -l); echo $var1”
- c# - 如何在http post请求的每一行中添加一个标头
- typescript - 打字稿:从具有索引签名的对象中获取密钥
- c# - 尝试使用 mongodb 的 filter.near
- java - Jhipster UAA 外部客户端
- python - Pandas Python - 比较不同的日期范围并检查它们是否在同一时间段内
- jqgrid - jqgrid - 使用“自定义”表单更新多行,如高级搜索
- android - 颤振,连接丢失,谷歌api
- elixir - 如何处理 elixir gettext po 文件中的模糊线条?