Create Organization
POSThttps://example.saviyntcloud.com/ECM/api/v5/createOrganization
This API creates an organization in SSM.
The Authorization
must have Bearer
followed by Token
.
Mandatory params:
organizationname
, username
- user who is creating the organization
Optional params:
Organization Detail attributes can be passed like parentorganization
, primarycontact
, customproperty<1 to 20>
, status
etc.
organizationtype
- Type of Organization. Possible values: DATA SECURITY / GROUPING / REQUEST RULES
roles
- List of roles with params - 1. rolename
rules
- List of rules with params - 1. name
2. type
- BUISNESS / TECH / USERUPDATE / NEWUSER / REMOVEUSER / UPDATE_ENTITLEMENT / NEW_ENTITLEMENT / REMOVE_ENTITLEMENT/REQUEST
entitlements
- List of entitlements with params - 1. entitlementvalue
2. entitlementtype
3. endpoint
users
- List of users with params - 1. username
endpoints
-
endpointname
2.cp(1..5)
owners
- 1.owner
2.rank
3.policy
(can be SUPERADMIN/ADMIN/BULKADMIN/READONLY)attributes
- 1.attributegroupname
2.attributes
3.value
4.attributevalues
Request
- application/json
Body
attributes
object[]
comment
cp10
cp5
endpoints
object[]
entitlements
object[]
los angeles
TestOrg5
request rules
owners
object[]
Globex
awsadmin
roles
object[]
ACTIVE
awsadmin
users
object[]
Responses
- 200
createOrganization / Create Organization 2
Response Headers
- application/json
- Schema
- Example (from schema)
- Create Organization 2
- createOrganization
Schema
0
Success
{
"errorCode": "0",
"msg": "Success"
}
{
"errorCode": "0",
"msg": "Success"
}
{
"errorCode": "0",
"msg": "Success"
}
Authorization: http
name: bearerAuthtype: httpscheme: bearerbearerFormat: JWT
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://example.saviyntcloud.com/ECM/api/v5/createOrganization' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"attributes": [
{
"attributegroupname": "dfdf",
"attributes": "street,pincode",
"attributevalues": {
"pincode": "123456",
"street": "treee"
},
"value": "group val"
}
],
"comments": "comment",
"customproperty10": "cp10",
"customproperty5": "cp5",
"endpoints": [
{
"cp1": "cp1",
"cp2": "cp2",
"cp3": "cp3",
"cp4": "cp4",
"cp5": "cp5",
"endpointname": "Office365"
},
{
"endpointname": "Salesforce"
}
],
"entitlements": [
{
"endpoint": "Office365",
"entitlementtype": "O365-ADGroup",
"entitlementvalue": "AzureADSP"
},
{
"endpoint": "Office365",
"entitlementtype": "O365-ADGroup",
"entitlementvalue": "DepartmentDynamicGroup"
}
],
"location": "los angeles",
"organizationname": "TestOrg5",
"organizationtype": "request rules",
"owners": [
{
"owner": "admin",
"rank": 2
},
{
"owner": "awsadmin",
"rank": 2
}
],
"parentorganization": "Globex",
"primarycontact": "awsadmin",
"roles": [
{
"rolename": "ADT_AdmitSuperv_MCL"
},
{
"rolename": "ADT_AdmitSuperv_MVH"
}
],
"status": "ACTIVE",
"username": "awsadmin",
"users": [
{
"username": "1000003"
},
{
"username": "1000005"
}
]
}'