diff --git a/src/contracts/user.ts b/src/contracts/user.ts index 103cceba9..387362f05 100644 --- a/src/contracts/user.ts +++ b/src/contracts/user.ts @@ -59,4 +59,10 @@ export interface UserPropertiesContract { * Collection of user identities. */ identities?: UserIdentity[]; + + /** + * Application type. Required to send notification with proper urls in emails. + * + */ + appType: string; } \ No newline at end of file diff --git a/src/services/usersService.ts b/src/services/usersService.ts index 0f87da21d..2d2a51a49 100644 --- a/src/services/usersService.ts +++ b/src/services/usersService.ts @@ -293,11 +293,12 @@ export class UsersService { identities: [{ id: jwtToken.oid, provider: provider - }] + }], + appType: Constants.AppType }; const response = await this.httpClient.send({ - url: `${managementApiUrl}/users?api-version=${Constants.managementApiVersion}&appType=${Constants.AppType}`, + url: `${managementApiUrl}/users?api-version=${Constants.managementApiVersion}`, method: "POST", headers: [ { name: "Content-Type", value: "application/json" },