Power shell scripts to get user info from B2C Tenant

2/4/2019 powershell Azure-B2C Azure-ADid

Powershell commands to connect and retrieve data from B2C tenant.

Install the AzureAD first using below command:

Install-Module -Name AzureAD

Connect to the Azure AD tenant using below command:

Connect-AzureAD -TenantId tenantIdHere

Command to get User data:

(Get-AzureADUser -objectid "Id of the user - get it from Azure portal").ToJson()