You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Look up certificateUserIds using Microsoft Graph queries
143
143
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.
145
145
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:
147
147
148
-
```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]')
148
+
```msgraph-interactive
149
+
GET https://graph.microsoft.com/v1.0/users?$filter=authorizationInfo/certificateUserIds/any(x:x eq '[email protected]')&$count=true
150
+
ConsistencyLevel: eventual
154
151
```
155
152
156
-
```http
157
-
GET https://graph.microsoft.com/v1.0/users?$filter=certificateUserIds eq '[email protected]'
158
-
```
153
+
You can also use the `not` and `startsWith` operators to match the filter condition. To filter against the certificateUserIds object, the request must include the `$count=true` query string and the **ConsistencyLevel** header set to `eventual`.
159
154
160
-
## Update certificate user IDs using Microsoft Graph queries
161
-
PATCH the user object certificateUserIds value for a given userId
155
+
## Update certificateUserIds using Microsoft Graph queries
156
+
157
+
Run a PATCH request to update the certificateUserIds for a given user.
0 commit comments