Skip to content

Latest commit

 

History

History
115 lines (83 loc) · 2.73 KB

Get-AzureADMSApplicationOwner.md

File metadata and controls

115 lines (83 loc) · 2.73 KB
external help file Module Name online version schema
Microsoft.Open.MS.GraphV10.PowerShell.dll-Help.xml
AzureAD
2.0.0

Get-AzureADMSApplicationOwner

SYNOPSIS

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

-ObjectId

Specifies the ID of an application in the Microsoft Entra ID.

Type: String
Parameter Sets: (All)
Aliases:

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

-All

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

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-Top

Specifies the maximum number of records to return.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
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.

NOTES

See the migration guide for Get-AzureADMSApplicationOwner to the Microsoft Graph PowerShell.

INPUTS

bool?

int?

string

OUTPUTS

Microsoft.Open.MSGraph.Model.GetDirectoryObjectsResponse

RELATED LINKS

Add-AzureADMSApplicationOwner

Remove-AzureADMSApplicationOwner