Creating a Group
Function
This API is used to synchronize a group to IAM Identity Center using the SCIM protocol.
URI
POST /{tenant_id}/scim/v2/Groups
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
tenant_id |
Yes |
String |
Globally unique ID of a tenant |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
Authorization |
Yes |
String |
Bearer token |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
externalId |
No |
String |
External ID |
|
displayName |
Yes |
String |
Display name of a group |
|
No |
Array of objects |
List of member objects in a group |
|
|
schemas |
Yes |
Array of strings |
Summary |
Response Parameters
Status code: 201
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Globally unique ID of a group |
|
externalId |
String |
External ID |
|
Object |
Metadata |
|
|
schemas |
Array of strings |
Summary |
|
displayName |
String |
Display name of a group |
|
Array of objects |
Members in a group |
|
Parameter |
Type |
Description |
|---|---|---|
|
resourceType |
String |
Resource type |
|
created |
String |
Resource creation time |
|
lastModified |
String |
Last resource update time |
|
Parameter |
Type |
Description |
|---|---|---|
|
value |
String |
Globally unique ID of a member |
|
$ref |
String |
Reference information of a member |
|
type |
String |
Member type. User: user |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
schema |
String |
Summary |
|
schemas |
Array of strings |
Summary list |
|
detail |
String |
Exception details |
|
status |
Integer |
Status code |
|
timeStamp |
String |
Timestamp |
Status code: 403
|
Parameter |
Type |
Description |
|---|---|---|
|
schema |
String |
Summary |
|
schemas |
Array of strings |
Summary list |
|
detail |
String |
Exception details |
|
status |
Integer |
Status code |
|
timeStamp |
String |
Timestamp |
Status code: 404
|
Parameter |
Type |
Description |
|---|---|---|
|
schema |
String |
Summary |
|
schemas |
Array of strings |
Summary list |
|
detail |
String |
Exception details |
|
status |
Integer |
Status code |
|
timeStamp |
String |
Timestamp |
Status code: 409
|
Parameter |
Type |
Description |
|---|---|---|
|
schema |
String |
Summary |
|
schemas |
Array of strings |
Summary list |
|
detail |
String |
Exception details |
|
status |
Integer |
Status code |
|
timeStamp |
String |
Timestamp |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
schema |
String |
Summary |
|
schemas |
Array of strings |
Summary list |
|
detail |
String |
Exception details |
|
status |
Integer |
Status code |
|
timeStamp |
String |
Timestamp |
Example Request
Creating a group
POST https://{hostname}/{tenant_id}/scim/v2/Groups
{
"displayName" : "SCIM group name g1",
"members" : [ {
"value" : "ac6aa714-daa7-1aaa-aaa2-6715aaaa4dd9",
"$ref" : "../Users/ac6aa714-daa7-1aaa-aaa2-6715aaaa4dd9",
"type" : "User"
} ],
"schemas" : [ "urn:ietf:params:scim:schemas:core:2.0:Group" ]
}
Example Response
Status code: 201
Successful
{
"id" : "0efaa0db-6aa4-7aaa-6aa5-c222aaaaf31a",
"meta" : {
"resourceType" : "Group",
"created" : "2023-04-08T14:53:43Z",
"lastModified" : "2023-04-08T14:53:43Z"
},
"schemas" : [ "urn:ietf:params:scim:schemas:core:2.0:Group" ],
"displayName" : "SCIM group name g1",
"members" : [ {
"value" : "ac6aa714-daa7-1aaa-aaa2-6715aaaa4dd9",
"$ref" : "../Users/ac6aa714-daa7-1aaa-aaa2-6715aaaa4dd9",
"type" : "User"
} ]
}
Status Codes
For details, see Status Codes.
Error Codes
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.