Get-AzureADMSApplicationOwner

Retrieves the list of owners for an application object.

Syntax

Get-AzureADMSApplicationOwner
   -ObjectId <String>
   [-All <Boolean>]
   [-Top <Int32>]
   [<CommonParameters>]

Description

Retrieves the list of owners for an application object.

Examples

Example 1: Get the owner of an application

PS C:\>Get-AzureADMSApplicationOwner -ObjectId "3ddd22e7-a150-4bb3-b100-e410dea1cb84" -Top 1

          ObjectId                             ObjectType
          --------                             ----------
          c13dd34a-492b-4561-b171-40fcce2916c5 User

This command gets the owner of an application.

Example 1: Get the owners of an application

PS C:\>Get-AzureADMSApplicationOwner -ObjectId "3ddd22e7-a150-4bb3-b100-e410dea1cb84" -All $true

          ObjectId                             ObjectType
          --------                             ----------
          c13dd34a-492b-4561-b171-40fcce2916c5 User

This command gets the owners of an application.

Parameters

-All

If true, return all owners. If false, return the number of objects specified by the Top parameter

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-ObjectId

Specifes the ID of an application in Azure Active Directory.

Type:String
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-Top

Specifies the maximum number of records to return.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Inputs

bool

int

string

Outputs

Microsoft.Open.MSGraph.Model.GetDirectoryObjectsResponse