Remove-MgGroupMemberByRef

Delete ref of navigation property members for groups

Syntax

Remove-MgGroupMemberByRef
      -DirectoryObjectId <String>
      -GroupId <String>
      [-Id <String>]
      [-IfMatch <String>]
      [-PassThru]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-MgGroupMemberByRef
      -InputObject <IGroupsIdentity>
      [-Id <String>]
      [-IfMatch <String>]
      [-PassThru]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Delete ref of navigation property members for groups

Examples

Example 1: Using the Remove-MgGroupMemberByRef Cmdlet

Import-Module Microsoft.Graph.Groups
Remove-MgGroupMemberByRef -GroupId $groupId -DirectoryObjectId $directoryObjectId

This example shows how to use the Remove-MgGroupMemberByRef Cmdlet. To learn about permissions for this resource, see the permissions reference.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-DirectoryObjectId

key: id of directoryObject

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

-Id

Delete Uri

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

-IfMatch

ETag

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

-InputObject

Identity Parameter To construct, please use Get-Help -Online and 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

-PassThru

Returns true when the command succeeds

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Graph.PowerShell.Models.IGroupsIdentity

Outputs

System.Boolean

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 <IGroupsIdentity>: Identity Parameter

  • [AttachmentId <String>]: key: id of attachment
  • [ContentTypeId <String>]: key: id of contentType
  • [ConversationId <String>]: key: id of conversation
  • [ConversationThreadId <String>]: key: id of conversationThread
  • [DirectoryObjectId <String>]: key: id of directoryObject
  • [DirectorySettingId <String>]: key: id of directorySetting
  • [DocumentSetVersionId <String>]: key: id of documentSetVersion
  • [DriveId <String>]: key: id of drive
  • [DriveItemId <String>]: key: id of driveItem
  • [DriveItemVersionId <String>]: key: id of driveItemVersion
  • [EndDateTime <String>]: Usage: endDateTime='{endDateTime}'
  • [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
  • [HorizontalSectionColumnId <String>]: key: id of horizontalSectionColumn
  • [HorizontalSectionId <String>]: key: id of horizontalSection
  • [IncludePersonalNotebooks <Boolean?>]: Usage: includePersonalNotebooks={includePersonalNotebooks}
  • [Interval <String>]: Usage: interval='{interval}'
  • [ListId <String>]: key: id of list
  • [ListId1 <String>]: Usage: listId='{listId}'
  • [ListItemId <String>]: key: id of listItem
  • [ListItemVersionId <String>]: key: id of listItemVersion
  • [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
  • [Path <String>]: Usage: path='{path}'
  • [PermissionId <String>]: key: id of permission
  • [PostId <String>]: key: id of post
  • [ProfilePhotoId <String>]: key: id of profilePhoto
  • [Q <String>]: Usage: q='{q}'
  • [ResourceSpecificPermissionGrantId <String>]: key: id of resourceSpecificPermissionGrant
  • [SensitivityLabelId <String>]: key: id of sensitivityLabel
  • [SingleValueLegacyExtendedPropertyId <String>]: key: id of singleValueLegacyExtendedProperty
  • [SiteId <String>]: key: id of site
  • [SitePageId <String>]: key: id of sitePage
  • [StartDateTime <String>]: Usage: startDateTime='{startDateTime}'
  • [SubscriptionId <String>]: key: id of subscription
  • [Token <String>]: Usage: token='{token}'
  • [User <String>]: Usage: User='{User}'
  • [UserId <String>]: key: id of user
  • [WebPartId <String>]: key: id of webPart