Is there a complete guide to Microsoft Office 365[2.2.1] CP?
I am trying to get a list of all e-mails in one folder but as I am new to Rest API subject I don't know exactly what I are all the prerequisites.
I was able to registry my aplication with Azure AD, get the Tenant,Client ID and secret, access to my company's proxy but when I executed the flow this is what I get after the token operation.
"message": "The token contains no permissions, or permissions can not be understood.",
I don't know exaclty what I should do or prepare for this to work, so wanted to know if there is a full guide for this content pack.
Thank you for contacting Micro Focus Forum.
My name is Carlos Robles, I am from the OO/CSA team.
Regarding your question, unfortunately, there is not a complete guide for Microsoft Office 365 [2.2.1] CP. All the information that can provide about the CP is the Release Notes that I attached you below.
I hope that the information provided was helpful.
Considering that all the steps up to this point are correct, the next action is to grant access rights.
In order to grant the correct rights:
- Login as administrator to Azure Portal
- Got to App Registrations
- Select your application
- Go to API permissions menu
- Select Add Permissions and then Microsoft Graph
- Expand the permissions and select the ones documented in the description of the operation that you want to run, then click Add Permissions on the bottom of the page.
- Return to API permissions and click the Grant admin consent button found on the bottom of the page.
Please note that Web/API type apps work with Client ID/Client Secret while Native type apps work with ClientID/User/pass.
Please share your point of view on how this type of information should be structured/documented in order to be easily understood.
Adding a bit more information.
A Get Auth Token call to a Native type App would look like this:
A Get Auth Token call to an API type call would look like this:
You can try a simple call using the List Messages operation where you provide the generated token as well as the email address of the Inbox that you want to list, like in the example below:
If everything is set up correctly you will get a valid response.
Tnx for information.
Since this post was outdated and with no response for long time i have created new discussion.
i have completed all steps fro you reply.
More info on my flow in problem you can see in discussion "Office 365 and NoPermissionToken".