#api-access 4 articles
- "The requested permission isn't valid" in API access — the API registration doesn't exist yetgotchas / spfxAPI access resolves resource to a service principal, so the app registration must exist before the .sppkg is uploaded
- A "grant it for me" button cannot work in a web part — not even for a Global Administratorgotchas / spfxA delegated call gets the intersection of the user's rights and the app's grants, so the admin at the keyboard adds nothing; writing the grant would take at least DelegatedPermissionGrant.ReadWrite.All approved for the…
- Approving Microsoft Graph permissions for SPFx needs a Global Administrator — Application Administrator is not enoughgotchas / permissionsAPI access requests for Microsoft Graph need Global Administrator (Application Administrator only covers third-party APIs), and admin consent for Graph application permissions such as Sites.Selected is explicitly…
- Power Automate admin flows API returns UserImpersonationScopeMissing from SPFx – even after you approve the scopegotchas / spfxSharePoint's token for Microsoft Flow Service carries only Microsoft's preauthorized scopes, so an approved User grant never reaches the token and the tenant-wide flows list stays 401