microsoftgraph / microsoftgraph/msgraph-sdk-php
Wrong enum value for the team member role in booking businesses - Request fails
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 669
- Forks
- 150
- Avg merge
- 15h 21m
- Merged PRs (30d)
- 3
Description
Describe the bug
When you try to fetch staff members of a booking business where one staff member has the Team Member role, the request fails with the error message Invalid enum value member.
Expected behavior
I expect to receive a valid result.
How to reproduce
Request the staff members of a booking business that contains a user with role Team Member
$app_client->solutions()->bookingBusinesses()->byBookingBusinessId( 'business-with-a-staff-member' )->staffMembers()->get()->wait();
SDK Version
2.49.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
invalid enum value member
Configuration
This issue is unrelated to my configuration.
Other information
The team member role name is declared wrong in https://github.com/microsoftgraph/msgraph-sdk-php/blob/acceb46d913bbfeb955c7f82057fb13ac6470117/src/Generated/Models/BookingStaffRole.php#L14
It must be member. This is also the role identifier when requesting the staff members directly via Postman:
"role": "member"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/Generated/Models/BookingStaffRole.php, where the Team Member role enum is declared, and compare it with the API value shown in the issue and the staff-members request. Verify the corrected enum value by running the relevant SDK tests or reproducing the booking business staff-members request; done means the request accepts the Team Member role and returns a valid result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 88/100