Getting Started with Microsoft Graph API

Microsoft Graph API is a superb way to leverage Microsoft 365 services as a developer. Before you start to wonder where all to get started from, this post is for you!

Microsoft Graph Explorer

Here’s how you can start using the Microsoft Graph API –

  1. Navigate to the Microsoft Graph Explorer (https://developer.microsoft.com/en-us/graph/graph-explorer), you’ll see the below –

  2. By default, if you run on Run Query, it’ll retrieve Sample Data already present.

  3. You can click on the Person icon in order to Authenticate to the environment you are already logged in.

  4. In case you are already logged in, select the environment or login from the start.


  5. You’ll also need to provide consent in order to proceed.

  6. Now that you are logged in, you can see the Tenant information being displayed and you can then also try to test run the same query and you’ll see your actual data being retrieved.

Important Notes

  1. In order to access a Users’ data, they have to consent this data for access.
  2. OData Queries are used to further query the data in order to access them.

Here’s the official link to the Microsoft Graph documentation and other resources: https://learn.microsoft.com/en-us/graph/?WT.mc_id=DX-MVP-5003911

Hope this was useful!

Thank you!

Permanently Delete users from Power Platform

Often times, as organizations have users enabled and disabled, over the course of time we see a lot of Disabled Users pile up in the system. Power Platform now lets you delete these Users permanently from the system.

Warning: Please note that this process will not get back the User you delete as you are going to permanently delete the User from Entra ID as well as Power Platform.

Enable Delete Users feature from Admin Center

First, you’ll need to enable this in the Power Platform Admin Center

  1. Select the environment you wish to enable this feature in and then click on Settings.

  2. Then, look for Features section.

  3. you’ll find the option for Delete Disabled Users which would be OFF by default. Switch it to ON.


    Zooming in a little bit, this is how the turned on feature should look –

  4. Once you turn this ON, be sure to scroll to the bottom of the page and click on Save to save the changes you just made.

Now that you have turned this on. You can now Delete the Disabled Users.

Pre-Requisite: Permanently Delete User

Now, let’s see how this process is to be carried out –

  1. Assuming the license of the User is now removed and if you Refresh the User in Power Platform Admin Center, you’ll see that the User will appear in the Disabled Users filtered list.

  2. Even if you delete the User in M365, you can refresh the Power Platform and see the User Name still present

  3. Now, if you open the User which you see with a different username in Power Platform Admin Center and click on it to open it in classic UI and see the Delete button to Delete the User

  4. Here’s the delete button.

  5. When you click on Delete and confirm it’ll throw the error message that this cannot be deleted.

Now, the next step is to permanently delete the User from Entra ID. Here’s a blog post to permanently delete the User from Entra ID: Permanently Delete a User in Entra ID

Delete in Power Platform

Now that the User is permanently deleted in Entra ID, you can re-attempt the delete the user in Power Platform.

  1. Now, retry the step from the User page in classic UI as you’ll see the button there.

  2. Now, you can click on the User in the Power Platform Admin Center and see that the user is showing that it has been deleted in the Environment

  3. And you can see the button to now Delete Permanently in the environment as well.

  4. And it’ll ask you if you want to really delete the User.

Hope this helps!

Thank you!

Permanently Delete a User in Entra ID

In case you are managing Users in Microsoft 365, a Deleted User still exists in Soft Delete state for 30 days.
Here’s how you can immediately delete the user permanently!
Please do this when you are entirely sure that you want to delete the User as this a permanent step and won’t get back the User once deleted.

Azure Admin Portal

Here’s how you can access the Azure Portal and then delete the User –

  1. Unlike M365, go to Azure Portal (https://portal.azure.com/#home), then look for Entra ID

  2. Then, look for Users.

  3. In Users, go to Deleted Users.

  4. There, you’ll find the Soft Deleted Users, select the User you want to delete and then click on Delete Permanently.

  5. You’ll need to refresh the page after a few moments to see that the User is not gone.


    Hope this is useful!

Thank you!

Manually Add Licensed Users in Dataverse Environment in Power Platform Admin Center

In case you want to reflect a recently licensed user in a Dataverse environment but you don’t see it reflect immediately, here’s how you can manually add users to the Dataverse environment yourself.

Check that the User has an appropriate license

From Microsoft 365 Admin Portal, ensure that the user has been successfully been given a license –

  1. In Users, click on the User and ensure the user has correct License required to be added to the environment.

  2. And even if you refresh the Enabled Users (in classic CRM UI), you don’t see the User.


    Here’s how you can quickly add a User instead of trying to sync all users (It’s possible to do that but slightly lengthy process). I’ll cover it in a separate post and link it here.
    First, let’s see in the below section on how to quickly add a User –

Add Users from Power Platform Admin Center

Given that you have the correct Dynamics 365 Administrator privileges, here’s how you can add Users manually –

  1. Go to the Environment in Power Platform Admin Center

  2. Go to the Users section once you expand on Users Permissions tab

  3. You’ll see that User is still not part of the environment. Here’s how you can add the User. Click on the + Add User button.

  4. Then, search for the User with their Email Address and you’ll see it populate once the user qualifies the criteria mentioned on the pane under User access requirements.

  5. Then, click on Add.

  6. In the next step, you’ll be asked to provide a Security Role to the User. For example, I’m assigning a Salesperson security role from the default Business Unit. And then clicking Save.

  7. This User will be added with the Security Roles. If you don’t see the name immediately, click on Refresh.

  8. You’ll see the User appear in the environment list.
    Also, you’ll see the User in the classic UI if you click on Manage users in Dynamics 365.

  9. Here’s how it’ll appear in the Classic UI.

Hope this was useful!

Thank you!