Get-MgGroup

Get entity from groups by key

Syntax

Get-MgGroup
   [-ExpandProperty <String[]>]
   [-Property <String[]>]
   [-Filter <String>]
   [-Search <String>]
   [-Skip <Int32>]
   [-Sort <String[]>]
   [-Top <Int32>]
   [-ConsistencyLevel <String>]
   [-PageSize <Int32>]
   [-All]
   [-CountVariable <String>]
   [<CommonParameters>]
Get-MgGroup
   -GroupId <String>
   [-ExpandProperty <String[]>]
   [-Property <String[]>]
   [-ConsistencyLevel <String>]
   [<CommonParameters>]
Get-MgGroup
   -InputObject <IGroupsIdentity>
   [-ExpandProperty <String[]>]
   [-Property <String[]>]
   [-ConsistencyLevel <String>]
   [<CommonParameters>]

Description

Get entity from groups by key

Parameters

-All

List all pages.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ConsistencyLevel

Indicates the requested consistency level.

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

Specifies a count of the total number of items in a collection. By default, this variable will be set in the global scope.

Type:String
Aliases:CV
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ExpandProperty

Expand related entities

Type:String[]
Aliases:Expand
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Filter

Filter items by property values

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

key: id of group

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

Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

Type:IGroupsIdentity
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-PageSize

Sets the page size of results.

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

Select properties to be returned

Type:String[]
Aliases:Select
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Search

Search items by search phrases

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

Skip the first n items

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

Order items by property values

Type:String[]
Aliases:OrderBy
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Top

Show only the first n items

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

Inputs

Microsoft.Graph.PowerShell.Models.IGroupsIdentity

Outputs

Microsoft.Graph.PowerShell.Models.IMicrosoftGraphGroup1

Notes

ALIASES

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.

INPUTOBJECT : Identity Parameter

  • [AttachmentId <String>]: key: id of attachment
  • [ConversationId <String>]: key: id of conversation
  • [ConversationThreadId <String>]: key: id of conversationThread
  • [DirectorySettingId <String>]: key: id of directorySetting
  • [EndpointId <String>]: key: id of endpoint
  • [EventId <String>]: key: id of event
  • [ExtensionId <String>]: key: id of extension
  • [GroupId <String>]: key: id of group
  • [GroupLifecyclePolicyId <String>]: key: id of groupLifecyclePolicy
  • [IncludePersonalNotebooks <Boolean?>]: Usage: includePersonalNotebooks={includePersonalNotebooks}
  • [MentionId <String>]: key: id of mention
  • [MultiValueLegacyExtendedPropertyId <String>]: key: id of multiValueLegacyExtendedProperty
  • [NotebookId <String>]: key: id of notebook
  • [OnenotePageId <String>]: key: id of onenotePage
  • [OnenoteSectionId <String>]: key: id of onenoteSection
  • [PostId <String>]: key: id of post
  • [ProfilePhotoId <String>]: key: id of profilePhoto
  • [ResourceSpecificPermissionGrantId <String>]: key: id of resourceSpecificPermissionGrant
  • [SingleValueLegacyExtendedPropertyId <String>]: key: id of singleValueLegacyExtendedProperty
  • [User <String>]: Usage: User={User}
  • [UserId <String>]: key: id of user