Hi Jarque Erasmus,
Even though you're using a Global Admin
account, you're facing permission errors when trying to access Microsoft Forms data through the Graph API
. This happens because specific permissions need to be granted for Graph API access, even to admin accounts.
1). Register your application in Azure AD by going to the Azure Portal → Navigating to Azure Active Directory → App registrations → New registration → Naming your app and registering it.
2). In your newly registered app, go to API permissions → Click Add a permission → Microsoft Graph → Delegated permissions → Search for and add the following permissions:
- Forms.Read (to read form definitions)
- Forms.ReadWrite (if you need to modify forms)
- Forms.Read.All (to read all forms in the organization)
3). Grant admin consent by clicking the Grant admin consent for [your organization]
button after adding the permissions; this step requires an admin account.
4). Go to Certificates & secrets → Create a new client secret and save it securely.
Please refer to the document below for troubleshooting Microsoft Graph.
Please accept as "Yes" if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues.
Let me know if you have any further Queries.