Skip to content

Workspace derived type is missing for Place (beta only) (Get-MgPlaceAsRoom don't retrieve resources of type "Workspace") #470

Open

Description

@luizmesquita89

When i try to use the cmdlet Get-MgPlaceAsRoom, are retrieved only the resources of type "room".
But i have in the Exchange both resources of type "room" and "workspace".

On the other hand, when i use the cmdlet Get-MGUserMailboxSetting, both the resources of type "room" and "workspace" have the property UserPurpose set to "room".

Could it be an API improvement?

https://learn.microsoft.com/en-us/graph/api/place-list?view=graph-rest-1.0&tabs=powershell

Activity

  1. changed the title [-]List Places[/-] [+]Get-MgPlaceAsRoom don't retrieve resources of type "Workspace"[/+] on Oct 3, 2023
  2. peombwa commented on Oct 20, 2023

    @peombwa
    Member

    Thanks for following up on this.

    Workspace derived type is missing in the service metadata for place entity in beta.

    As a workaround, you can use Invoke-MgGraphRequest -Uri "https://graph.microsoft.com/beta/places/microsoft.graph.workspace" to retrieve the resources. See API reference doc for more details - https://learn.microsoft.com/en-us/graph/api/place-list?view=graph-rest-beta&tabs=http#example-2-list-all-the-workspaces-defined-in-the-tenant.

    I've transferred the issue to the metadata repo for visibility.

    <EntitySet Name="places" EntityType="microsoft.graph.place">
      <Annotation Term="Org.OData.Validation.V1.DerivedTypeConstraint" xmlns:edm="http://docs.oasis-open.org/odata/ns/edm">
        <Collection>
          <String>microsoft.graph.room</String>
          <String>microsoft.graph.roomList</String>
          <String>microsoft.graph.workspace</String> <!-- This is currently missing in beta -->
        </Collection>
      </Annotation>
    </EntitySet>
  3. changed the title [-]Get-MgPlaceAsRoom don't retrieve resources of type "Workspace"[/-] [+]Workspace derived type is missing for Place (beta only) (Get-MgPlaceAsRoom don't retrieve resources of type "Workspace")[/+] on Oct 20, 2023
  4. added
    metadata-issue
    priority:p2
    on Nov 15, 2023
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

    Status: Needs InvestigationToTriagemetadata-issuepriority:p2

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions