How to get a specific Booking staff member by email address?

Bernard Polman 15 Reputation points
2023-05-19T12:33:57.59+00:00

I tried to use the following request URL to get a staff member by email:

GET https://graph.microsoft.com/v1.0/solutions/bookingBusinesses/KundenberatungTestBooking1@w8tlt.onmicrosoft.com/staffMembers?filter=emailAddress eq 'somestaffmember@testtest.onmicrosoft.com',

but the endpoint always returns all staff members, i.e. the "filter" is always ignored.

Am I doing something wrong or is using '?filter=' to filter by property in BookingStaffMember entity not supported at all?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,716 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. TH-4749-MSFT 3,290 Reputation points
    2023-05-24T14:59:19.5966667+00:00

    Hello Bernard Polman,

    Thanks for reaching out. Filter clause is applied as '?$filter= instead of '?filter' as used in your endpoint URL, hence the filter clause is ignored in your case. You can find more information on the filter clause here.

    Please note filter clause may not be supported for all properties. In my tests filtering did not work with the 'emailaddress' property however works with the id property for example:

    https://graph.microsoft.com/v1.0/solutions/bookingBusinesses/SomeBooking@domain.onmicrosoft.com/staffMembers?$filter=id eq 'SomeId'

    You can provide your feedback and suggestions at the Graph feedback forum.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    Thanks.