"Query option 'Select' is not allowed. To allow it, set the 'AllowedQueryOptions' property on EnableQueryAttribute or QueryValidationSettings."

VS 1 Reputation point
2022-12-05T08:04:47.303+00:00

Hi Im using Graph List signIns API for data fetching. There with the response for each row Im getting a lot of unwanted fields. I do need to get only few field, So i use SELECT Query option to select only fields which i need to have. But it seems there is some issue with the request now.
Getting an Error as
"Query option 'Select' is not allowed. To allow it, set the 'AllowedQueryOptions' property on EnableQueryAttribute or QueryValidationSettings."

Can anyone know how to fix this, Is there any solutions to select fields.?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. HarmeetSingh7172 4,826 Reputation points
    2022-12-05T12:22:05.933+00:00

    Hello @VS

    Thanks for reaching out!

    As per the Microsoft Graph documentation for List SignIns, currently it only supports the $top, $skiptoken, and $filter OData Query Parameters to help customize the response (for both v1.0 & beta). Usage of Select query option is not allowed on this Graph call.

    Refer this documentation to find more details.

    Hope this helps.

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


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.