Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 36188

user management using the AzureAD powershell module

$
0
0

cls

$cred = Get-Credential

#Connect to your AzureAD tenant

Connect-AzureAD -Credential $cred

# Get a user by UPN

$user = Get-AzureADUser -ObjectId “user1@????.onmicrosoft.com”

$user | fl

# Update some properties
$user = Set-AzureADUser -ObjectId $user.UserPrincipalName -Department “Azure Architecture” -Country “Turkey”

# Get a user by UPN
$user = Get-AzureADUser -ObjectId “user1@????.onmicrosoft.com”

$user | fl


Viewing all articles
Browse latest Browse all 36188

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>