Set-O365AssignedUser

Assigns an office_365_2 account to a network user account.

Syntax

Set-O365AssignedUser
   [-LocalAccountName] <String>
   [-O365AccountUPN] <String>
   [<CommonParameters>]

Description

The Set-O365AssignedUser cmdlet assigns an office_365_1 account to a network user account.

Examples

Example 1: Assign an Office 365 account to a local user account

PS C:\> Set-O365AssignedUser -LocalAccountName "PattiFuller" -O365AccountUPN "PattiFuller@contoso.onmicrosoft.com"
An Office 365 account was assigned to the user account.

This command assigns an office_365_2 account to a local user account named PattiFuller.

1:

PS C:\>

Parameters

-LocalAccountName

Specifies the name of a local Active Directory user account. The cmdlet assigns the office_365_2 account to the local user account that you specify for the O365AccountUPN parameter.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-O365AccountUPN

Specifies a user principal name (UPN). The cmdlet assigns the office_365_2 account that you specify to the local user account that you specify for the LocalAccountName parameter.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

System.String,System.String

LocalAccountName Type: System.String Description: local user name

O365AccountUPN Type: System.String Description: user principal name