My Oracle Support Banner

IDCS API - Automated Provisioning Of Users - Create User API (Doc ID 2625005.1)

Last updated on DECEMBER 16, 2020

Applies to:

Identity Cloud Service (IDCS) - Version N/A and later
Information in this document applies to any platform.

Goal

Qn1:On : NA version, Client API
IDCS API - Automated provisioning of users - Create User API
==============================================

Is it possible to create an user and patch the same user to a group in a single REST API call?

Here is the customer's scenario,

=================
We are in the process of automating the provision of users and groups using IDCS API. ( /admin/v1/Users). I was successful in creating a new user using the API.
The issue is assigning the groups to the new user. I want to use the same operation that I use to create a new user and assign a group.
As per documentation, the "groups" is an attribute in the new user request. But I could not get this right. The examples in the site does not provide steps to pass the "groups" data in create user API.

Sample JSON request used.

{
  "schemas" : [ "urn:ietf:params:scim:api:messages:2.0:BulkRequest" ],
  "Operations" : [ {
  "method" : "POST",
  "path" : "/Users",
  "bulkId" : "id_user1",
  "data" : {
  "schemas" : [ "urn:ietf:params:scim:schemas:core:2.0:User" ],
  "name" : {
  "familyName" : "TestLN",
  "givenName" : "TestFN",
  "middleName" : "TestMN"
  },
  "userName" : "Test@test.com",
  "emails" : [ {
  "value" : "Test@test.com",
  "type" : "work",
  "primary" : true
  } ],
  "userType" : "Employee",
  "displayName" : "Test Test",
  "groups" : [ {
   "value" : "G-OACDEV-Developers"
   } ]
  }
  } ]
}


Can you help with the JSON format to pass groups data in Users API?
 ===============

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.