diff --git a/extensions/microsoft-authentication/src/AADHelper.ts b/extensions/microsoft-authentication/src/AADHelper.ts index b71fa0190b7..9dec4a9aa4a 100644 --- a/extensions/microsoft-authentication/src/AADHelper.ts +++ b/extensions/microsoft-authentication/src/AADHelper.ts @@ -196,6 +196,9 @@ export class AzureActiveDirectoryService { if (!modifiedScopes.includes('email')) { modifiedScopes.push('email'); } + if (!modifiedScopes.includes('profile')) { + modifiedScopes.push('profile'); + } let orderedScopes = modifiedScopes.sort().join(' '); Logger.info(`Getting sessions for the following scopes: ${orderedScopes}`); @@ -231,6 +234,9 @@ export class AzureActiveDirectoryService { if (!scopes.includes('email')) { scopes.push('email'); } + if (!scopes.includes('profile')) { + scopes.push('profile'); + } scopes = scopes.sort(); const scopeData: IScopeData = { scopes,