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
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.