Hi @CheeryB
Thanks for reaching out!
You are getting this error because you are using Graph Explorer tool to test GET /users/{id | userPrincipalName}/mailFolders
endpoint.
Graph Explorer can only work with Delegated Permissions i.e., GET /me/mailFolders
To check other users' mailfolders, you need to add Application Permissions ( Mail.ReadBasic.All, Mail.Read, Mail.ReadWrite ) in your Azure application, generate an application token and then test this GET /users/{id | userPrincipalName}/mailFolders
endpoint in Postman Tool.
Refer- List Mail Folders
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.