Skip to content

Get-MgGroup -Expand Owners only returns user Id and DeletedDateTime #252

Closed

Description

@joshtransient

In Graph Explorer, the following commands return the expanded property set for users who are owners:

https://graph.microsoft.com/v1.0/groups?$expand=Owners
https://graph.microsoft.com/v1.0/groups/[guid]?$expand=Owners
https://graph.microsoft.com/beta/groups?Expand=Owners
https://graph.microsoft.com/beta/groups/[guid]?Expand=Owners

Get-MgGroup -Expand Owners only returns the properties Id and DeletedDateTime for Group owners.

Version: 0.5.1
PowerShell version: Windows PowerShell 5.1

Activity

  1. ddyett commented on Jun 7, 2020

    @ddyett
    Contributor

    related to #19

  2. KirkMunro commented on Jun 9, 2020

    @KirkMunro

    Please address this issue. Expand is still useful without it, but hurts performance because many individual network calls are necessary to retrieve the full information that is needed.

  3. ddyett commented on Jun 9, 2020

    @ddyett
    Contributor

    yes we do intend to address this.

  4. joshtransient commented on Oct 1, 2020

    @joshtransient
    Author

    This now appears to just throw an error with v1.0.1 of the module: Get-MgGroup : Unrecognized query argument specified: '?$Expand'

  5. KirkMunro commented on Oct 1, 2020

    @KirkMunro

    joshtransient See #409. It only happens in Windows PowerShell. If PowerShell 7 is an option for you, it doesn't happen there. Unfortunately PowerShell 7 is not an option for me. They're working on the issue though.

  6. ddyett commented on Oct 5, 2020

    @ddyett
    Contributor

    yes #410 should address this bug. We're working on getting an update out soon.

  7. peombwa commented on Dec 28, 2020

    @peombwa
    Member

    Closing since this was fixed in 1.1.0. Use Update-Module Microsoft.Graph to update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions