Manage Office 365 Users Using Powershell

It is possible to build scripts around PowerShell to manage usersIn Okta literature, we generally refer to "users" as the people who serve as Okta administrators. When we refer to "end users" we are generally referring to the people who the administrators serve. That is, those who use Okta chiclets to access their apps, but have no administrative control. in Office 365 using the New- MsolUser cmdlet. Note that when a user domainA domain is an attribute of an Okta organization. Okta uses a fully-qualified domain name, meaning it always includes the top-level domain (.com, .eu, etc.), but does not include the protocol (https). is federated, you must also provide an immutableId. When Okta provisions users using the Default provisioning type, it uses a unique value on the Okta user. The following is a simple script that will convert the AD ObjectGuid to the immutableId.

Get-ADUser username | ForEach-Object {$immutableId = [Convert]::ToBase64String($_.ObjectGuid.ToByteArray()); Write-Host $_.UserPrincipalName, $_.Name, $immutableId;New-MsolUser -DisplayName $_.Name –UserPrincipalName$_.UserPrincipalName -ImmutableId $immutableId; }

It is important that if you intend to have these users federated back to Okta that the users are setup correctly. The scopeA scope is an indication by the client that it wants to access some resource. of this is beyond this document, please contact your Okta account team for help.

Okta also creates a copy of the same user in its own directory. When the SSOAn acronym for single sign-on. In a SSO system, a user logs in once to the system and can access multiple systems without being prompted to sign in for each one. Okta is a cloud-based SSO platform that allows users to enter one name and password to access multiple applications. Users can access all of their web applications, both behind the firewall and in the cloud, with a single sign in. Okta provides a seamless experience across PCs, laptops, tablets, and smartphones. step takes place, Okta is going to pass to Office 365 a username and it needs to match the value for the corresponding user in Office 365. The value for the username is set on the Single Sign On tab of the Okta Office 365 application as shown below. Whatever format you select, this is the value that must match the one in Office 365.

Top