How to serach bitlocker recovery key by microsoft graph API?

Glebov, Artyom2 1 Reputation point
2022-07-20T13:06:45.16+00:00

Hi. I use http requests to get data from graph API
I can search by full key, for example : https://graph.microsoft.com/v1.0/informationProtection/bitlocker/recoveryKeys/{bitlockeryRecoveryKeyId}?$select=key, where BitlockeryRecoveryKeyId contain 32 symbols

So, is there possibility to search for a part of recovery key, for example : https://graph.microsoft.com/v1.0/informationProtection/bitlocker/recoveryKeys?$search="keyId eq {bitlockeryRecoveryKeyId} where BitlockeryRecoveryKeyId will contain firs 8 symbols ?

Windows for business | Windows Client for IT Pros | Devices and deployment | Configure application groups
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,931 Reputation points
    2022-07-21T07:39:14.43+00:00

    Hi there,

    I suppose there is no partial recovery option for the Bitlocker key by Namespace: microsoft.graph.

    By default, this operation does not return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers an Azure AD audit of the operation and generates an audit log

    --------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer–

    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.