...
Curl Example
Code Block | ||||
---|---|---|---|---|
| ||||
curl --insecure -X POST "https://localhost:7443/eidm2/services/orgs/?username=restuser&password=secret&organizationId=6666666-6&friendlyName=TestOrganization" |
Response Document
Code Block | ||||
---|---|---|---|---|
| ||||
<idlist> <Id>https://HOSTNAME/eidm2/services/org/example1/dep1</Id> </idlist> |
...
Curl Example
Code Block | ||||
---|---|---|---|---|
| ||||
curl --insecure -X DELETE "https://localhost:7443/eidm2/services/org/6666666-6?username=restuser&password=secret&recursive=true" |
Response Document
Code Block | ||||
---|---|---|---|---|
| ||||
<idlist> <Id>https://HOSTNAME/eidm2/services/org/example1/dep1</Id> <Id>https://HOSTNAME/eidm2/services/role/example1/OrganizationMainUser</Id> <Id>https://HOSTNAME/eidm2/services/role/example1/OrganizationUser</Id> <Id>https://HOSTNAME/eidm2/services/user/example1/abcd-1234</Id> <Id>https://HOSTNAME/eidm2/services/user/example1/efgh-5678</Id> </idlist> |
...
Curl Example
Code Block | ||||
---|---|---|---|---|
| ||||
curl --insecure -X PUT "https://localhost:7443/eidm2/services/org/6666666-6/?username=restuser&password=secret&friendlyName=TestOrganizationRENAME" |
Response Document
Code Block | ||||
---|---|---|---|---|
| ||||
<idlist> <Id>https://HOSTNAME/eidm2/services/org/example1/dep1</Id> </idlist> |
...
Curl Example
Code Block | ||||
---|---|---|---|---|
| ||||
curl --insecure -X PUT "https://localhost:7443/eidm2/services/user/6666666-6/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/?username=restuser&password=secret&mobile=+358401234567891" |
Response Document
Code Block | ||||
---|---|---|---|---|
| ||||
<idlist> <Id>https://HOSTNAME/eidm2/services/user/example1/user1</Id> </idlist> |
...
Curl Example
Code Block | ||||
---|---|---|---|---|
| ||||
curl --insecure -X POST "https://localhost:7443/eidm2/services/assignments/6666666-6/TestRole/?username=restuser&password=secret&user=6666666-6/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" |
Response Document
Code Block | ||||
---|---|---|---|---|
| ||||
<idlist/> |
MOD006 Deassign Role
...
Curl Example
Code Block | ||||
---|---|---|---|---|
| ||||
curl --insecure -X DELETE "https://localhost:7443/eidm2/services/assignments/6666666-6/TestRole/?username=restuser&password=secret&user=6666666-6/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" |
Response Document
Code Block | ||||
---|---|---|---|---|
| ||||
<idlist/> |
MOD007 Create Role
...
Curl Example
Code Block | ||||
---|---|---|---|---|
| ||||
curl --insecure -X PUT "https://localhost:7443/eidm2/services/role/6666666-6/TestRole?username=restuser&password=secret" |
Response Document
Code Block | ||||
---|---|---|---|---|
| ||||
<idlist> <Id>https://HOSTNAME/eidm2/services/role/testorg/testrole</Id> </idlist> |
...
Curl Example
Code Block | ||||
---|---|---|---|---|
| ||||
curl --insecure -X DELETE "https://localhost:7443/eidm2/services/role/6666666-6/TestRole?username=restuser&password=secret" |
Response Document
Code Block | ||||
---|---|---|---|---|
| ||||
<idlist> <Id>https://HOSTNAME/eidm2/services/role/testorg/testrole</Id> </idlist> |
...
Curl Example
Code Block | ||||
---|---|---|---|---|
| ||||
curl --insecure -X POST "https://localhost:7443/eidm2/services/users/6666666-6?username=restuser&password=secret&uid=leena&firstname=Leena&surname=Laine&email=leena.laine@example.com&pwd=Password1&loginuserprincipalname=leena.laine" |
Response Document
Code Block | ||||
---|---|---|---|---|
| ||||
<idlist> <Id>https://HOSTNAME/eidm2/services/user/example1/user1</Id> </idlist> |
...
Curl Example
Code Block | ||||
---|---|---|---|---|
| ||||
curl --insecure -X DELETE "https://localhost:7443/eidm2/services/user/6666666-6/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/?username=restuser&password=secret" |
Response Document
Code Block | ||||
---|---|---|---|---|
| ||||
<idlist> <Id>https://HOSTNAME/eidm2/services/user/example1/user1</Id> </idlist> |
...
Curl Example
Code Block | ||||
---|---|---|---|---|
| ||||
curl --insecure -X POST "https://localhost:7443/eidm2/services/init/?username=restuser&password=secret&resetRepository=true&initializeDatabase=true" |
Response Document
Code Block | ||||
---|---|---|---|---|
| ||||
<idlist/> |
MOD013 Update Users
...
Curl Example
Code Block | ||||
---|---|---|---|---|
| ||||
curl --insecure -X PUT "https://localhost:7443/eidm2/services/users/6666666-6/?username=restuser&password=secret&disableUsers=true" |
Response Document
Code Block | ||||
---|---|---|---|---|
| ||||
<idlist> <Id>https://HOSTNAME/eidm2/services/user/example1/user1</Id> <Id>https://HOSTNAME/eidm2/services/user/example1/user2</Id> <Id>https://HOSTNAME/eidm2/services/user/example1/user3</Id> </idlist> |
...
Curl Example
Code Block | ||||
---|---|---|---|---|
| ||||
curl --insecure -X GET "https://localhost:7443/eidm2/services/users/?username=restuser&password=secret&recursive=true" |
...
List of Identifiers
Code Block | ||||
---|---|---|---|---|
| ||||
<idlist> <Id>https://HOSTNAME/eidm2/services/user/example1/user1</Id> <Id>https://HOSTNAME/eidm2/services/user/example1/user2</Id> <Id>https://HOSTNAME/eidm2/services/user/example1/dep1/user3</Id> </idlist> |
List of Entities
Code Block | ||||
---|---|---|---|---|
| ||||
<entitylist> <user>...</user> <user>...</user> <user>...</user> </entitylist> |
...
Curl Example
Code Block | ||||
---|---|---|---|---|
| ||||
curl --insecure -X GET "https://localhost:7443/eidm2/services/user/6666666-6/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX?username=restuser&password=secret" |
Response Document
Code Block | ||||
---|---|---|---|---|
| ||||
<user> <Id>https://HOSTNAME/eidm2/services/user/example1/user1</Id> <organization>https://HOSTNAME/eidm2/services/org/example1</organization> <organizationFriendlyName>Example Inc.</organizationFriendlyName> <status>Enabled</status> <attributes> <uid>john.doe</uid> <firstname>John</firstname> <surname>Doe</surname> <email>john.doe@example.com</email> <mobile>555-1234</mobile> <hetu>123456-7890</hetu> <cn>John Doe</cn> <organization>example1</organization> <customattribute name="custom1"> <value>Value</Value> <value>Value2</Value> </customattribute> </attributes> <roleassignments> <roleassignment> <role> <Id>https://HOSTNAME/eidm2/services/role/example1/testrole</Id> </Role> </roleassignment> </roleassignments> <groupassignments> <groupassignment> <group> <Id>eIDMUser</Id> </group> </groupassignment> </groupassignments> </user> |
...
Curl Example
Code Block | ||||
---|---|---|---|---|
| ||||
curl --insecure -X GET "https://localhost:7443/eidm2/services/orgs/?username=restuser&password=secret&entities=true" |
...
List of Identifiers
Code Block | ||||
---|---|---|---|---|
| ||||
<idlist> <Id>https://HOSTNAME/eidm2/services/org/example1</Id> <Id>https://HOSTNAME/eidm2/services/org/example1/dep1</Id> <Id>https://HOSTNAME/eidm2/services/org/example1/dep2</Id> </idlist> |
List of Entities
Code Block | ||||
---|---|---|---|---|
| ||||
<entitylist> <organization>...</organization> <organization>...</organization> <organization>...</organization> </entitylist> |
...
Curl Example
Code Block | ||||
---|---|---|---|---|
| ||||
curl --insecure -X GET "https://localhost:7443/eidm2/services/org/6666666-6/?username=restuser&password=secret" |
...
Non-virtual Organization
Code Block | ||||
---|---|---|---|---|
| ||||
<organization> <Id>https://HOSTNAME/eidm2/services/org/example1</Id> <virtual>false</virtual> <friendlyName>Example Inc.</friendlyName> <organizationClass>class1</organizationClass> <customattribute name="custom1"> <value>Value</Value> <value>Value2</Value> </customattribute> <roles> <role> <Id>https://HOSTNAME/eidm2/services/org/example1/OrganizationMainUser</Id> </Role> </Roles> <applicationCount>0</applicationCount> <pendingOrganizations> <count>2</count> <newest>11.11.2011</newest> <oldest>10.10.2010</oldest> <url>https://<hostname>/eidm2/wf/admin/organization/approval/example1</url> </pendingOrganizations> </organization> |
Virtual Organization
Code Block | ||||
---|---|---|---|---|
| ||||
<organization> <Id>https://HOSTNAME/eidm2/services/org/virtual1</Id> <virtual>true</virtual> <friendlyName>Example Project</friendlyName> <customattribute name="custom1"> <value>Value</Value> <value>Value2</Value> </customattribute> <roles> <role> <Id>https://HOSTNAME/eidm2/services/role/virtual1/OrganizationMainUser</Id> </Role> <role> <Id>https://HOSTNAME/eidm2/services/role/virtual1/OrganizationUser</Id> </Role> </Roles> </organization> |
...
Curl Example
Code Block | ||||
---|---|---|---|---|
| ||||
curl --insecure -X GET "https://localhost:7443/eidm2/services/role/6666666-6/TestRole/?username=restuser&password=secret&assignments=true" |
Response Document
Code Block | ||||
---|---|---|---|---|
| ||||
<role> <Id>https://HOSTNAME/eidm2/services/role/example1/testrole</Id> <roleassignments> <roleassignment> <userid>https://HOSTNAME/eidm2/services/user/example1/user1</userid> </roleassignment> <roleassignment> <userid>https://HOSTNAME/eidm2/services/user/example1/user2</userid> </roleassignment> </roleassignments> </Role> |
...