Skip to content

The GroupMembership query returns only id, displayName, and type for each member, omitting mail, userPrincipalName #115

@iamshinto

Description

@iamshinto

What happened?

The GroupMembership query type returns only id, displayName, and type for each group member. The mail and userPrincipalName fields for user members are always absent from the result — even though the function documentation and composition annotations indicate they should be present.

Expected output:

- id: "63e8dcb9-f5ca-46c7-8977-8e65ab60d84f"
  displayName: "Doe, John"
  type: user
  mail: "john.doe@example.com"
  userPrincipalName: "john.doe@example.com"

Actual output:

- id: "63e8dcb9-f5ca-46c7-8977-8e65ab60d84f"
  displayName: "Doe, John"
  type: user

How can we reproduce it?

Run the function query against a group with atleast 1 active member in it and the status field will be missing mail and user principal name

What environment did it happen in?

Function version: v0.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions