ADDB2C - Error to filter identities by issuerAssignedId(email) with alias

Evans Aboge 116 Reputation points Microsoft Employee
2022-09-14T08:13:00.713+00:00

I tried to make a request using the email filter; when it has +1, +2, etc., a Gmail alias, the query returns nothing.

To Reproduce:

  1. Add a new e-mail on ADDB2C with an alias, for example, maria+1@Stuff .com
  2. Change URI, replace xxx to your issuer: https://graph.microsoft.com/beta/users?$filter=identities/any(c:c/issuerAssignedId eq 'maria+1@Stuff .com' and c/issuer eq 'xxx.onmicrosoft.com')
  3. Call URI with auth token on the headers.
    curl --location \ \--request GET 'https://graph.microsoft.com/beta/users?$filter=identities/any(c:c/issuerAssignedId eq '\''******@gmail.com'\'' and c/issuer eq '\''quartileb2c.onmicrosoft.com'\'')' \ \--header 'Authorization: Bearer {token}'
    1. See error

240889-image.png
240972-image.png
240917-image.png

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,147 questions
{count} votes

Accepted answer
  1. Zehui Yao_MSFT 5,871 Reputation points
    2022-09-15T10:14:00.99+00:00

    Hi @Evans Aboge , do you encounter the same problem when querying other normal users?
    also, note the following guidelines when querying: https://learn.microsoft.com/en-us/graph/api/resources/objectidentity?view=graph-rest-1.0
    Or try replacing '+' with '%2B' (according to Percent-encoding) to see if that works.
    241443-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Evans Aboge 116 Reputation points Microsoft Employee
    2022-09-16T06:19:24.287+00:00

    Thank you. Encoding the plus sign solves it.
    I appreciate the prompt response :)

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.