Skip to content

Latest commit

 

History

History
100 lines (71 loc) · 2.9 KB

Get-TeamsUserLicenseServicePlan.md

File metadata and controls

100 lines (71 loc) · 2.9 KB
external help file Module Name online version schema
TeamsFunctions-help.xml
TeamsFunctions
2.0.0

Get-TeamsUserLicenseServicePlan

SYNOPSIS

Returns License information (ServicePlans) for an Object in AzureAD

SYNTAX

Get-TeamsUserLicenseServicePlan [-UserPrincipalName] <String[]> [-DisplayAll] [<CommonParameters>]

DESCRIPTION

Returns an Object containing all Teams related ServicePlans (for Licenses assigned) for a specific Object

EXAMPLES

EXAMPLE 1

Get-TeamsUserLicenseServicePlan [-UserPrincipalName] John@domain.com

Displays all licenses assigned to User John@domain.com

EXAMPLE 2

Get-TeamsUserLicenseServicePlan -UserPrincipalName John@domain.com,Jane@domain.com

Displays all licenses assigned to Users John@domain.com and Jane@domain.com

EXAMPLE 3

Import-Csv User.csv | Get-TeamsUserLicenseServicePlan

Displays all licenses assigned to Users from User.csv, Column UserPrincipalName, ObjectId or Identity. The input file must have a single column heading of "UserPrincipalName" with properly formatted UPNs.

PARAMETERS

-UserPrincipalName

The UserPrincipalName, ObjectId or Identity of the Object.

Type: String[]
Parameter Sets: (All)
Aliases: ObjectId, Identity

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-DisplayAll

Displays all ServicePlans, not only relevant Teams Service Plans Also displays AllLicenses and AllServicePlans object for further processing

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String

OUTPUTS

System.Object

NOTES

Requires a connection to Azure Active Directory

RELATED LINKS

https://github.com/DEberhardt/TeamsFunctions/tree/main/docs/Get-TeamsUserLicenseServicePlan.md

https://github.com/DEberhardt/TeamsFunctions/tree/main/docs/about_Licensing.md

https://github.com/DEberhardt/TeamsFunctions/tree/main/docs/about_UserManagement.md

https://github.com/DEberhardt/TeamsFunctions/tree/main/docs/