Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Method

Example request

Example response

Description

GET

GET /application/Example/client1/$link/impersonateAs

When there is a link to Example/user1:

Code Block
{
  "type": "application",
  "id": "/application/Example/client1",
  "objects": [
    {
      "type": "user",
      "id": "/user/Example/user1",
      "link": "impersonateAs"
    }
  ]
}

Get the user linked to the given application with an impersonateAs link

PUT

PUT /application/Example/client1/$link/impersonateAs/user/Example/user1

Code Block
{
  "type": "application",
  "id": "/application/Example/client1",
  "objects": [
    {
      "type": "user",
      "id": "/user/Example/user1",
      "link": "impersonateAs"
    }
  ]
}

Create or update the link from application to the user. No action if the link between the given application and user already exists. If another user name is given an existing impersonateAs link to a previous user will be replaced with a link to the given user.

DELETE

PUT /application/Example/client1/$link/impersonateAs/user/Example/user1

Code Block
{
  "type": "application",
  "id": "/application/Example/client1"
}

Remove the link from application to the user.

...