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]