Getting the login name of a user or a group via API

With the LMS365 API it's possible to get the login name of a user as well as a group. This article provides description of the steps to get the relevant login name.

 

To get the login name of a user or a group follow the steps below:

1. Go to https://api.365.systems/ and make sure you are authorized with the relevant API key.

2. Find the Users section, expand it, find the GET method /odata/v2/Users with the Returns the list of Users description and then click Try it out in the top left corner.

 

 

3. Select on the Execute button to run the request. 

TIP   

You can use query options parameters to control the data in the response by setting filters. When query options parameters are set, the response will contain additional data and details which you can use for search.

 

Group_25__8_.png

 

4. Go to the Responses block to check the results:

  • Number 2xx (for example, 200) under Code shows that the request worked correctly.
  • In the Response body field you will see all users of the tenant and their data including login names specified in the "LoginName" line.
  • Search via Ctrl+F for a specific user or group. You can use the Download button to save the results of the API request in the .JSON format to your computer.

Here are some examples of how the login names for a user or a group will displayed in the response:

  • Login name of a user

Group_25__9_.png

  • Login name of a Microsoft 365 group

Group_26.png

  • Login name of a Security group

Group_27.png

 

Was this article helpful?
2 out of 2 found this helpful

Comments

Article is closed for comments.