Getting Logged-In Users
|
Only Restore Portal users or restore operators can use this method. Make sure to obtain an authorization token with the operator value selected from the grant_type drop-down list. For more information on how to obtain a token, see Authorization for Restore Operators. |
You can get a resource representation of information about a Microsoft 365 organization users currently logged in to Restore Portal.
Request
GET https://<hostname>:4443/v6/Organization/LoggedInUser |
Request Headers
The request header must contain an authorization token of the current session.
Request Body
None.
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns a response code 200 OK.
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTPS headers.
Header | Description |
---|---|
Content-length | The length of the response body. |
Content-type | The media type and syntax of the response body message: application/json; charset=utf-8 |
Response Body
In the response body, the server returns a resource representation of the /Organization/LoggedInUser resource. The response body contains the following properties:
Property | Type | Description |
---|---|---|
id | string | User ID. |
name | string | The name of the organization user. |
Example
The example returns a resource representation of information about a Microsoft 365 organization users currently logged in to Restore Portal.
Request: GET https://abc.tech.local:4443/v6/LoggedInUser
Request Header: Authorization: Bearer <Access-Token>
Response: 200 OK
Response Body: { "id": "82a9e4ac-2378-4238-aba3-1ef840c9476300000000-0000-0000-0000-000000000000", "name": "restore_operator1@abc.onmicrosoft.com" } |