Unable to Set Verified Publisher via Microsoft Graph API – verifiedPublisherId Not Found

Bence Kiszel 0 Reputation points
2025-04-23T15:14:50.1033333+00:00

Hello,

I am trying to set the verified publisher for an Azure AD B2C application via the Microsoft Graph API, but I am encountering the following issues:


What I am trying to do:

I am calling the following Microsoft Graph endpoint:

POST https://graph.microsoft.com/v1.0/applications/{applicationObjectId}/setVerifiedPublisher

With this request body:

{ "verifiedPublisherId": "Redacted" }


Issue:

When I try to set the verified publisher manually, I receive this error:

{
    "error": {
        "code": "MPNAccountNotFoundOrNoAccess",
        "message": "The MPN ID you provided (Redacted) does not exist, or you do not have access to it. Please provide a valid MPN ID and try again.",
        "innerError": {
            "date": "2025-04-23T14:29:29",
            "request-id": "6587f94a-85ec-485b-972f-51f9f06924d4",
            "client-request-id": "6587f94a-85ec-485b-972f-51f9f06924d4"
        }
    }
}

Additional context:

  • I have already associated my Azure AD B2C tenant with Partner Center in the Developer tab and see it listed under Account Settings → Tenants.
  • My application exists in the correct B2C tenant and has the correct appObjectId.

What I need help with:

  • Where to find the MPNID or verifiedPublisherId?.
  • Ensure that my B2C tenant is recognized as a verified publisher and eligible to call setVerifiedPublisher.
  • Why do I get this error?

Thank you in advance!
Bence Kiszel

Microsoft Partner Center API
Microsoft Partner Center API
Microsoft Partner Center: A Microsoft website for partners that provides access to product support, a partner community, and other partner services.API: A software intermediary that allows two applications to interact with each other.
375 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Finlay Thomas 0 Reputation points
    2025-04-23T15:33:49.1633333+00:00

    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:

    1. 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.
    2. Tenant association: In Partner Center, under Developer > Tenants, make sure your B2C tenant is listed and marked as Verified.
    3. 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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.