Dela via


Get-AdminPowerAppLicenses

Downloads the user licenses into a specified file.

Syntax

Get-AdminPowerAppLicenses
   [-OutputFilePath] <String>
   [[-TimeoutInMinutes] <Int32>]
   [[-ApiVersion] <String>]
   [<CommonParameters>]

Description

The Get-AdminPowerAppLicenses cmdlet downloads the user licenses into a specified file. Output of the cmdlet only includes licenses for users that have accessed Power Platform services (for example, Power Apps, Power Automate, or the Power Platform admin center). Users that have had licenses assigned in Microsoft Entra ID (typically via the Microsoft 365 admin center) but have never accessed Power Platform services will not have their licenses included in the generated .csv output. Furthermore, since the Power Platform licensing services caches the licenses, updates made to license assignments in Entra ID can take up to seven days to reflect in the output for users that haven't accessed the service recently. Use Get-Help Get-AdminPowerAppLicenses -Examples for more details.

Examples

EXAMPLE 1

Get-AdminPowerAppLicenses -OutputFilePath C:\Users\testuser\licenses.json

Downloads the licenses of the calling user into specified path file C:\Users\testuser\licenses.json.

Parameters

-ApiVersion

Specifies the Api version that is called.

Type:String
Position:3
Default value:2016-11-01
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-OutputFilePath

The output file path.

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

-TimeoutInMinutes

The timeout setting in minutes.

Type:Int32
Position:2
Default value:10080
Required:False
Accept pipeline input:False
Accept wildcard characters:False