Wednesday, July 31, 2019

Azure SSO changes for Google

Azure SSO changes for Google


1.Sign on URL :https://www.google.com/a/<domain>/ServiceLogin?continue=https://apps.google.com/user/hub
2.Identifier (Entity ID) : google.com/a/<DOMAIN>
3.User Attributes & Claims Unique User Identifier = user.userprincipalname

Saturday, July 27, 2019

How to add office 365 users in Office 365 groups = Group type "Office 365"


Script to bulk upload user to use Office 365 Group of type "Office 365" Not "Security".

1) Create a CSV file with colum name  "UserPrincipalName"
Add all the email, which needs Microsoft 365 license .


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#Create credential object
$credObject = Get-Credential
#Import the Exchange Online ps session
$ExchOnlineSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $credObject -Authentication Basic -AllowRedirection
Import-PSSession $ExchOnlineSession

Import-CSv -Path “C:\Users\sanjivk\D365\Assisgn Bulk license script\Assign D365 license user 1.0.CSV” | ForEach {

$UPN=$_.UserPrincipalName

Write-Host $UPN
Add-UnifiedGroupLinks –Identity "D365Prod-CR Account Configuration Team-OSG" –LinkType Members  –Links $UPN
}

Friday, July 19, 2019

How to add office 365 users in Office 365 security groups = Group type "Security"

Script to bulk upload user to use Office 365 Group of type "Security" Not "Office 365".

1) Create a CSV file with colum name  "UserPrincipalName"
Add all the email, which needs Microsoft 365 license .



Set-ExecutionPolicy unrestricted
Install-Module MSOnline
$AzureAdCred = Get-Credential
Connect-MsolService -Credential $AzureAdCred


Import-CSv -Path D:\Assign D365 license user 1.0.CSV | ForEach {

$UPN=$_.UserPrincipalName

$Users=Get-MsolUser -UserPrincipalName $UPN

# Get the Security Group id from Azure Ad 

$Groupid = Get-MsolGroup -ObjectId 1349607e-825a-45d0-b3a2-068de8f6

$Users | ForEach {Add-MsolGroupMember -GroupObjectId $GroupID.ObjectID -GroupMemberObjectId $Users.ObjectID -GroupMemberType User}

}


HTML

Script:

JS