Skip to content

Bug report: Cannot retrieve birthday when getting all user properties #2434

@appieschot

Description

@appieschot

Description

It seems to not be possible to retrieve the birthday property using the m365 aad user list

Steps to reproduce

$requiredProfileProperties = "id,displayName,userPrincipalName,birthday,externalUserState"
$users = m365 aad user list --properties $requiredProfileProperties -o json

Results in an error Error: This operation target is not yet supported.

Expected result

Documentation to be updated that not all properties are yet supported, the m365 aad user get allows you to retrieve that property. Currently the docs point to: https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0#properties but the docs at https://docs.microsoft.com/en-us/graph/api/user-list?view=graph-rest-1.0&tabs=http state:

Certain properties cannot be returned within a user collection. The following properties are only supported when retrieving an single user: aboutMe, birthday, hireDate, interests, mySite, pastProjects, preferredName, responsibilities, schools, skills, mailboxSettings.

Actual result

An error Error: This operation target is not yet supported.

Environment

Windows 10, CLI version 3.9

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions