0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Publisher】Get a user list using Microsoft Graph

Posted at

This time, I'm going to use Microsoft Graph from the Sharperlight publisher to get a user list of my company.

Start Publisher

Start Publisher. Select from the Sharperlight application menu.
image.png

Starting to create a new report

Once the publisher is up, start creating a new report with the New button.
image.png
In the New Report Definition dialog that opens, enter the Group, Code and Title.
image.png

Defining Query

Start defining the query with the Edit Query button. Query Builder starts.

Mode and Product

In the Query Builder, select Summary Report for Mode and System for Product.
image.png

Table

For Table, set Web Page Table, CSV, JSON, XML or OData.
A set of filters related to the selected table value will be generated and displayed.
image.png

URL Link

Copy the URL for gettong all users in the organization from the Microsoft Graph Explorer and paste it into the URL Link filter value field in the query builder.
image.png
Paste the URL.
image.png

Authentication Type

Authentication is required.
Click the Search button for the Authentication Type filter. Enter the details in the authentication dialog that opens.
image.png
In the authentication dialog, first select the type. Select <Microsoft Azure Graph> from the drop-down list.
Enter the necessary information in <Microsoft Azure Graph> and perform an authentication test with the Test button.
It's also a good idea to save your settings for reuse with the Add button.
image.png
If the authentication is successful, save it with the OK button.
image.png
Once the Authentication Type has been determined, a list of items that can be acquired will be displayed in the Selection area.
image.png

Setting and previewing query output items

Set the fetchable items in the output area. Try running the query with the Preview button.
image.png
A list of users will be returned.
image.png
If you can preview the data, save the query with the OK button.
Go to the Options tab and uncheck the Enable Prompts checkbox.
image.png
Save the report with the OK button.

View as web report

The saved report will be displayed in the publisher's report list, so select View Report from the right-click menu.
Of course, don't forget to start the Sharperlight service.
image.png
Your browser should display the report like this.
image.png

Depending on your company's settings for user security on the Microsoft Azure side, you may be able to query other information like this as well.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?