Get-O365AssignedUser

Gets the office_365_2 account assigned to a network user account.

Syntax

Get-O365AssignedUser
   [-LocalAccountName] <String>
   [<CommonParameters>]

Description

The Get-O365AssignedUser cmdlet gets the office_365_1 account that is assigned to a local network user account.

Examples

Example 1: Get the Office 365 account assigned to a local user account

PS C:\> Get-O365AssignedUser -LocalAccountName "PattiFuller"

This command gets the office_365_2 account that is assigned to the local user account named PattiFuller.

1:

PS C:\>

Parameters

-LocalAccountName

Specifies the name of a local Active Directory user account. The cmdlet gets the office_365_2 account assigned to the local user account that you specify.

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

Inputs

String

LocalAccountName Type: System.String Description: local user name

Outputs

Microsoft.WindowsServerSolutions.O365Integration.O365User

This cmdlet returns a class that represents office_365_2 online account. ObjectId Property System.Guid UserPrincipalName Property System.String Activated Property System.Boolean LocalUserName Property System.String Licenses Property System.Collections.ObjectModel.ReadOnlyCollection<O365UserLicense>