403 Forbidden Error When Creating Virtual Event Registration with Microsoft Graph

Bombardi BKM 65 Reputation points
2024-11-04T13:49:06.64+00:00

Testing the "Create virtualEventRegistration" feature in Microsoft Graph using Postman results in a 403 Forbidden response when attempting to create a registration record.

Are there specific requirements for the webinar to allow registration creation, or could there be steps that have been overlooked?

Here is the request being made. Note that {webinarId} is a valid webinar ID:

Request Headers:

POST https://graph.microsoft.com/v1.0/solutions/virtualEvents/webinars/{virtualEventWebinar-id}/registrations
Key: Content-Type; Value: application/json

**Request **

{
    "firstName": "firstName",
    "lastName": "lastName",
    "email": "firstName.lastName@mail.com",
    "preferredTimezone": "W. Europe Standard Time",
    "preferredLanguage": "it-it"
}

Response:

{
    "error": {
        "code": "Forbidden",
        "message": "Forbidden",
        "innerError": {
            "date": "2024-11-04T10:43:36",
            "request-id": "659d6fc6-046b-4128-9856-af84aac79566",
            "client-request-id": "659d6fc6-046b-4128-9856-af84aac79566"
        }
    }
}

Access Token Claims:

{
    "typ": "JWT",
    "nonce": "TC77aFqqgHfPLaslYrnr_82sEBuMz7QUhCQgW3LMmr8",
    "alg": "RS256",
    "x5t": "3PaK4EfyBNQu3CtjYsa3YmhQ5E0",
    "kid": "3PaK4EfyBNQu3CtjYsa3YmhQ5E0"
}.{
    "aud": "https://graph.microsoft.com",
    "iss": "https://sts.windows.net/3ad452f7-c913-42f2-977e-9f63fb01e263/",
    "iat": 1730716335,
    "nbf": 1730716335,
    "exp": 1730720235,
    "aio": "k2BgYLhT31K3YpGaXm/H9VupR6eVAwA=",
    "app_displayname": "Test integrazione Teams Wally",
    "appid": "2fd26a4e-b262-461e-b41f-f7d02e7f4f9b",
    "appidacr": "1",
    "idp": "https://sts.windows.net/3ad452f7-c913-42f2-977e-9f63fb01e263/",
    "idtyp": "app",
    "oid": "9b334beb-32d2-4c64-b1ee-5740f6d6b1d6",
    "rh": "1.AS8A91LUOhPJ8kKXfp9j-wHiYwMAAAAAAAAAwAAAAAAAAACwAAAvAA.",
    "roles": [
        "OnlineMeetings.Read.All",
        "OnlineMeetings.ReadWrite.All",
        "OnlineMeetingArtifact.Read.All",
        "Calendars.Read",
        "VirtualEvent.Read.All",
        "User.Read.All",
        "Calendars.ReadBasic.All",
        "Calendars.ReadWrite",
        "VirtualEventRegistration-Anon.ReadWrite.All"
    ],
    "sub": "9b334beb-32d2-4c64-b1ee-5740f6d6b1d6",
    "tenant_region_scope": "EU",
    "tid": "3ad452f7-c913-42f2-977e-9f63fb01e263",
    "uti": "yHk2hRiXsECQmmNXoypIAA",
    "ver": "1.0",
    "wids": [
        "0997a1d0-0d1d-4acb-b408-d5ca73121e90"
    ],
    "xms_idrel": "6 7",
    "xms_tcdt": 1539601217,
    "xms_tdbr": "EU"
}.[Signature]
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,326 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,289 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,345 questions
{count} vote

Accepted answer
  1. Hitesh Pachipulusu - MSFT 3,000 Reputation points Microsoft Vendor
    2024-11-05T07:05:59.7+00:00

    Hello Bombardi BKM,

    Thank you for contacting Microsoft Support!

    Please check whether the webinar is public/private. If its private, try creating public webinar and create registration.

    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.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

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.