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 ?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,672 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,760 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,381 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