Still a work in progress article...
First, to get started, we need to register an "app" in our Azure Portal for our Microsoft account. To do this, navigate to this website. Sign in to your Microsoft account. You find the page under "Azure Active Directory" --> "App Registrations", click on "New registration"
Give it an appropriate name like "Foxtrot RPA", select the third option, and click "Register":
Now, go to "Certificates & secrets":
Click to add a new "Client secret":
Give it a name and click "Add":
Make sure to copy the value right away as it will be hidden as soon as you leave this page. Note it down somewhere like in Notepad and label the value "Client secret" for later reference:
Now, navigate to "API permissions" as we need to provide this API application the necessary permissions. For this test, we will just give it a lot of different permissions allowing us to, for example, send messages via Microsoft Teams:
Select "Microsoft Graph":
Select "Application permissions":
First, we will allow the API to read and write all groups:
Also, we will do the same for users.
Of course, you can adjust these to what you need, but those two settings are good, to begin with for test. Now, click "Add permissions":
Now, as an admin, you need to grant admin consent. If you are not an admin, this can be done on an individual level with a different method:
If everything works, it should look like this: