Skip to content

Commit 4f78ab0

Browse files
authored
Document correct filter syntax
------- cc: @Justinha
1 parent 095c2c0 commit 4f78ab0

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

articles/active-directory/authentication/concept-certificate-based-authentication-certificateuserids.md

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -141,34 +141,27 @@ IIF(IsPresent([alternativeSecurityId]),
141141

142142
## Look up certificateUserIds using Microsoft Graph queries
143143

144-
Tenant admins can run MS Graph queries to find all the users with a given certificateUserId value.
144+
Authorized callers can run Microsoft Graph queries to find all the users with a given certificateUserId value. On the Microsoft Graph [user](/graph/api/resources/user) object, the collection of certificateUserIds are stored in the **authorizationInfo** property.
145145

146-
GET all user objects that have the value '[email protected]' value in certificateUserIds:
146+
To retrieve all user objects that have the value '[email protected]' in certificateUserIds:
147147

148148
```http
149-
GET https://graph.microsoft.com/v1.0/users?$filter=certificateUserIds/any(x:x eq '[email protected]')
150-
```
151-
152-
```http
153-
GET https://graph.microsoft.com/v1.0/users?$filter=startswith(certificateUserIds, '[email protected]')
149+
GET https://graph.microsoft.com/v1.0/users?$filter=authorizationInfo/certificateUserIds/any(x:x eq '[email protected]')
154150
```
155151

156-
```http
157-
GET https://graph.microsoft.com/v1.0/users?$filter=certificateUserIds eq '[email protected]'
158-
```
152+
You can also use the `eq`, `not`, and `startsWith` operators to match the filter condition.
159153

160-
## Update certificate user IDs using Microsoft Graph queries
161-
PATCH the user object certificateUserIds value for a given userId
154+
## Update certificateUserIds using Microsoft Graph queries
155+
156+
Run a PATCH request to update the certificateUserIds for a given user.
162157

163158
#### Request body:
164159

165160
```http
166-
PATCH https://graph.microsoft.us/v1.0/users/{id}
161+
PATCH https://graph.microsoft.com/v1.0/users/{id}
167162
Content-Type: application/json
168-
{
169163
170-
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users(authorizationInfo,department)/$entity",
171-
"department": "Accounting",
164+
{
172165
"authorizationInfo": {
173166
"certificateUserIds": [
174167
"X509:<PN>123456789098765@mil"

0 commit comments

Comments
 (0)