Below are the Parameters to create a user in OIM through REST:
Authentication: Username(xelsysadm): Password
Request Type: Post
Request Content: Application/scim+json
Request
Body:
{ "schemas": [
"urn:ietf:params:scim:schemas:extension:oracle:2.0:OIG:User",
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:oracle:2.0:IDM:User",
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
],
"userName": "USER_LOGIN",
"password":"PASSWORD",
"name": {
"givenName": "FIRST_NAME",
"familyName": "LAST_NAME"
},
"emails": [
{ "value": "EMAIL",
"type": "work"
}
],
"userType": "Full-Time",
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":
{
"organization": "Xellerate Users"
}
}
The same request can be sent using curl command as well:
curl -i -X POST -d
@newuser.txt -k -u xelsysadm:PASSWORD -H
"Content-Type:application/scim+json" http://OIM_HOST:14000/idaas/im/scim/v1/Users
newuser.txt file should be at the location from where this command is run. Content of the file should be same as Request Body above.
command to show the users are:
curl -i -k -u xelsysadm:PASSWORD -H "Accept:application/scim+json" http://OIM_HOST:14000/idaas/im/scim/v1/Users
Can you provide an example for not using http basic as security, instead using OAM issued JWT (JWTAuthentication service provider)
ReplyDeleteCan we encrypt the "password":"PASSWORD" field and sent? If yes then how to do that
ReplyDelete