You're getting the MPNAccountNotFoundOrNoAccess
error because the MPN ID you're providing is either incorrect or your tenant doesn't have access to it.
What to check:
- MPN ID (verifiedPublisherId): Log in to Partner Center, go to Account Settings > Organization Profile > Partner Profile. Use the primary MPN ID, not a location-specific one.
- Tenant association: In Partner Center, under Developer > Tenants, make sure your B2C tenant is listed and marked as Verified.
- Permissions: Ensure the user calling the API has the right permissions (e.g.
Directory.ReadWrite.All
,AppRoleAssignment.ReadWrite.All
) and is a global admin in both Partner Center and the B2C tenant.
Why the error happens:
Usually it's due to:
Incorrect or unverified MPN ID
B2C tenant not properly linked
Insufficient permissions