If your admin created this for you, you should be able to ask them to share snapshot of what api permissions are assigned.
If you created this yourself, you should be able see those under app registration-> view api permissions on azure
Also, please check the detailed error message, it can be the case that it’s related to scope error.
Plus, also tell me what package version of O365 you are using in your UiPath project.