Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space IDS and version 8.2.0

...

Curl Example

Code Block
languagetext
themeRDark
curl --insecure -X POST "https://localhost:7443/eidm2/services/orgs/?username=restuser&password=secret&organizationId=6666666-6&friendlyName=TestOrganization"

Response Document

Code Block
theme
languagetextRDark
 <idlist>
  <Id>https://HOSTNAME/eidm2/services/org/example1/dep1</Id>
 </idlist>

...

Curl Example

Code Block
languagetext
themeRDark
curl --insecure -X DELETE "https://localhost:7443/eidm2/services/org/6666666-6?username=restuser&amp;password=secret&amp;recursive=true"

Response Document

Code Block
languagetext
themeRDark
 <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
theme
languagetextRDark
curl --insecure -X PUT "https://localhost:7443/eidm2/services/org/6666666-6/?username=restuser&amp;password=secret&amp;friendlyName=TestOrganizationRENAME"

Response Document

Code Block
languagetext
themeRDark
 <idlist>
  <Id>https://HOSTNAME/eidm2/services/org/example1/dep1</Id>
 </idlist>

...

Curl Example

Code Block
languagetextthemeRDark
curl --insecure -X PUT "https://localhost:7443/eidm2/services/user/6666666-6/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/?username=restuser&amp;password=secret&amp;mobile=+358401234567891"

Response Document

Code Block
theme
languagetextRDark
 <idlist>
  <Id>https://HOSTNAME/eidm2/services/user/example1/user1</Id>
 </idlist>

...

Curl Example

Code Block
languagetext
themeRDark
curl --insecure -X POST "https://localhost:7443/eidm2/services/assignments/6666666-6/TestRole/?username=restuser&amp;password=secret&amp;user=6666666-6/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"

Response Document

Code Block
theme
languagetextRDark
 <idlist/>

MOD006 Deassign Role

...

Curl Example

Code Block
languagetextthemeRDark
curl --insecure -X DELETE "https://localhost:7443/eidm2/services/assignments/6666666-6/TestRole/?username=restuser&amp;password=secret&amp;user=6666666-6/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"

Response Document

Code Block
languagetext
themeRDark
 <idlist/>

MOD007 Create Role

...

Curl Example

Code Block
languagetext
themeRDark
curl --insecure -X PUT "https://localhost:7443/eidm2/services/role/6666666-6/TestRole?username=restuser&amp;password=secret"

Response Document

Code Block
languagetext
themeRDark
 <idlist>
  <Id>https://HOSTNAME/eidm2/services/role/testorg/testrole</Id>
 </idlist>

...

Curl Example

Code Block
languagetext
themeRDark
curl --insecure -X DELETE "https://localhost:7443/eidm2/services/role/6666666-6/TestRole?username=restuser&amp;password=secret"

Response Document

Code Block
languagetext
themeRDark
 <idlist>
  <Id>https://HOSTNAME/eidm2/services/role/testorg/testrole</Id>
 </idlist>

...

Curl Example

Code Block
theme
languagetextRDark
curl --insecure -X POST "https://localhost:7443/eidm2/services/users/6666666-6?username=restuser&amp;password=secret&amp;uid=leena&amp;firstname=Leena&amp;surname=Laine&amp;email=leena.laine@example.com&amp;pwd=Password1&amp;loginuserprincipalname=leena.laine"

Response Document

Code Block
languagetext
themeRDark
 <idlist>
  <Id>https://HOSTNAME/eidm2/services/user/example1/user1</Id>
 </idlist>

...

Curl Example

Code Block
languagetextthemeRDark
curl --insecure -X DELETE "https://localhost:7443/eidm2/services/user/6666666-6/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/?username=restuser&amp;password=secret"

Response Document

Code Block
languagetextthemeRDark
 <idlist>
  <Id>https://HOSTNAME/eidm2/services/user/example1/user1</Id>
 </idlist>

...

Curl Example

Code Block
languagetext
themeRDark
curl --insecure -X POST "https://localhost:7443/eidm2/services/init/?username=restuser&amp;password=secret&amp;resetRepository=true&amp;initializeDatabase=true"

Response Document

Code Block
languagetext
themeRDark
 <idlist/>

MOD013 Update Users

...

Curl Example

Code Block
languagetext
themeRDark
curl --insecure -X PUT "https://localhost:7443/eidm2/services/users/6666666-6/?username=restuser&amp;password=secret&amp;disableUsers=true"

Response Document

Code Block
languagetext
themeRDark
 <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
languagetext
themeRDark
curl --insecure -X GET "https://localhost:7443/eidm2/services/users/?username=restuser&amp;password=secret&amp;recursive=true"

...

List of Identifiers

Code Block
languagetextthemeRDark
 <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
languagetext
themeRDark
 <entitylist>  <user>...</user>  <user>...</user>  <user>...</user> </entitylist>

...

Curl Example

Code Block
languagetextthemeRDark
curl --insecure -X GET "https://localhost:7443/eidm2/services/user/6666666-6/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX?username=restuser&amp;password=secret"

Response Document

Code Block
languagetextthemeRDark
 <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
theme
languagetextRDark
curl --insecure -X GET "https://localhost:7443/eidm2/services/orgs/?username=restuser&amp;password=secret&amp;entities=true"

...

List of Identifiers

Code Block
languagetext
themeRDark
 <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
languagetext
themeRDark
 <entitylist>
  <organization>...</organization>
  <organization>...</organization>
  <organization>...</organization>
 </entitylist>

...

Curl Example

Code Block
theme
languagetextRDark
curl --insecure -X GET "https://localhost:7443/eidm2/services/org/6666666-6/?username=restuser&amp;password=secret"

...

Non-virtual Organization

Code Block
languagetext
themeRDark
 <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
languagetextthemeRDark
 <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
languagetext
themeRDark
curl --insecure -X GET "https://localhost:7443/eidm2/services/role/6666666-6/TestRole/?username=restuser&amp;password=secret&amp;assignments=true"

Response Document

Code Block
languagetextthemeRDark
 <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>

...