# Accounts API: Users

## GET /api/accounts/users-connections/{from}/{to}

> Retrieves one specific user connection

```json
{"openapi":"3.0.1","info":{"title":"Developer API","version":"v2.0.0"},"servers":[{"url":"/v2/e01"}],"security":[{"Bearer":[]},{"Cookie":[]}],"components":{"securitySchemes":{"Bearer":{"type":"apiKey","description":"-","name":"Bearer","in":"header"},"Cookie":{"type":"apiKey","description":"-","name":"InSite.WebToken","in":"cookie"}},"schemas":{"ProblemDetails":{"type":"object","properties":{"Type":{"type":"string","nullable":true},"Title":{"type":"string","nullable":true},"Status":{"type":"integer","format":"int32","nullable":true},"Detail":{"type":"string","nullable":true},"Instance":{"type":"string","nullable":true}},"additionalProperties":{}}}},"paths":{"/api/accounts/users-connections/{from}/{to}":{"get":{"tags":["Accounts API: Users"],"summary":"Retrieves one specific user connection","operationId":"retrieveUserConnection","parameters":[{"name":"fromUser","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"toUser","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"from","in":"path","required":true,"schema":{"type":"string"}},{"name":"to","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}},"text/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## HEAD /api/accounts/users-connections/{from}/{to}

> Checks for the existence of one specific user connection

```json
{"openapi":"3.0.1","info":{"title":"Developer API","version":"v2.0.0"},"servers":[{"url":"/v2/e01"}],"security":[{"Bearer":[]},{"Cookie":[]}],"components":{"securitySchemes":{"Bearer":{"type":"apiKey","description":"-","name":"Bearer","in":"header"},"Cookie":{"type":"apiKey","description":"-","name":"InSite.WebToken","in":"cookie"}},"schemas":{"ProblemDetails":{"type":"object","properties":{"Type":{"type":"string","nullable":true},"Title":{"type":"string","nullable":true},"Status":{"type":"integer","format":"int32","nullable":true},"Detail":{"type":"string","nullable":true},"Instance":{"type":"string","nullable":true}},"additionalProperties":{}}}},"paths":{"/api/accounts/users-connections/{from}/{to}":{"head":{"tags":["Accounts API: Users"],"summary":"Checks for the existence of one specific user connection","operationId":"assertUserConnection","parameters":[{"name":"fromUser","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"toUser","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"from","in":"path","required":true,"schema":{"type":"string"}},{"name":"to","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}},"text/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## POST /api/accounts/users-connections/collect

> Collects the list of user connections that match specific criteria

```json
{"openapi":"3.0.1","info":{"title":"Developer API","version":"v2.0.0"},"servers":[{"url":"/v2/e01"}],"security":[{"Bearer":[]},{"Cookie":[]}],"components":{"securitySchemes":{"Bearer":{"type":"apiKey","description":"-","name":"Bearer","in":"header"},"Cookie":{"type":"apiKey","description":"-","name":"InSite.WebToken","in":"cookie"}},"schemas":{"CollectUserConnections":{"type":"object","properties":{"ConnectedSince":{"type":"string","format":"date-time","nullable":true},"ConnectedBefore":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false},"UserConnectionModel":{"type":"object","properties":{"FromUserId":{"type":"string","format":"uuid"},"ToUserId":{"type":"string","format":"uuid"},"IsLeader":{"type":"boolean"},"IsManager":{"type":"boolean"},"IsSupervisor":{"type":"boolean"},"IsValidator":{"type":"boolean"},"Connected":{"type":"string","format":"date-time"}},"additionalProperties":false}}},"paths":{"/api/accounts/users-connections/collect":{"post":{"tags":["Accounts API: Users"],"summary":"Collects the list of user connections that match specific criteria","operationId":"collectUserConnections","requestBody":{"content":{"application/json-patch+json":{"schema":{"$ref":"#/components/schemas/CollectUserConnections"}},"application/json":{"schema":{"$ref":"#/components/schemas/CollectUserConnections"}},"text/json":{"schema":{"$ref":"#/components/schemas/CollectUserConnections"}},"application/*+json":{"schema":{"$ref":"#/components/schemas/CollectUserConnections"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserConnectionModel"}}},"text/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserConnectionModel"}}}}}}}}}}
```

## POST /api/accounts/users-connections/count

> Counts the user connections that match specific criteria

```json
{"openapi":"3.0.1","info":{"title":"Developer API","version":"v2.0.0"},"servers":[{"url":"/v2/e01"}],"security":[{"Bearer":[]},{"Cookie":[]}],"components":{"securitySchemes":{"Bearer":{"type":"apiKey","description":"-","name":"Bearer","in":"header"},"Cookie":{"type":"apiKey","description":"-","name":"InSite.WebToken","in":"cookie"}},"schemas":{"CountUserConnections":{"type":"object","properties":{"ConnectedSince":{"type":"string","format":"date-time","nullable":true},"ConnectedBefore":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false},"CountResult":{"type":"object","properties":{"Count":{"type":"integer","format":"int32"},"Summary":{"type":"string","nullable":true}},"additionalProperties":false}}},"paths":{"/api/accounts/users-connections/count":{"post":{"tags":["Accounts API: Users"],"summary":"Counts the user connections that match specific criteria","operationId":"countUserConnections","requestBody":{"content":{"application/json-patch+json":{"schema":{"$ref":"#/components/schemas/CountUserConnections"}},"application/json":{"schema":{"$ref":"#/components/schemas/CountUserConnections"}},"text/json":{"schema":{"$ref":"#/components/schemas/CountUserConnections"}},"application/*+json":{"schema":{"$ref":"#/components/schemas/CountUserConnections"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountResult"}},"text/json":{"schema":{"$ref":"#/components/schemas/CountResult"}}}}}}}}}
```

## POST /api/accounts/users-connections/download

> Downloads the list of user connections that match specific criteria

```json
{"openapi":"3.0.1","info":{"title":"Developer API","version":"v2.0.0"},"servers":[{"url":"/v2/e01"}],"security":[{"Bearer":[]},{"Cookie":[]}],"components":{"securitySchemes":{"Bearer":{"type":"apiKey","description":"-","name":"Bearer","in":"header"},"Cookie":{"type":"apiKey","description":"-","name":"InSite.WebToken","in":"cookie"}},"schemas":{"CollectUserConnections":{"type":"object","properties":{"ConnectedSince":{"type":"string","format":"date-time","nullable":true},"ConnectedBefore":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false}}},"paths":{"/api/accounts/users-connections/download":{"post":{"tags":["Accounts API: Users"],"summary":"Downloads the list of user connections that match specific criteria","operationId":"downloadUserConnections","requestBody":{"content":{"application/json-patch+json":{"schema":{"$ref":"#/components/schemas/CollectUserConnections"}},"application/json":{"schema":{"$ref":"#/components/schemas/CollectUserConnections"}},"text/json":{"schema":{"$ref":"#/components/schemas/CollectUserConnections"}},"application/*+json":{"schema":{"$ref":"#/components/schemas/CollectUserConnections"}}}},"responses":{"200":{"description":"OK"}}}}}}
```

## POST /api/accounts/users-connections/search

> Searches for the list of user connections that match specific criteria

```json
{"openapi":"3.0.1","info":{"title":"Developer API","version":"v2.0.0"},"servers":[{"url":"/v2/e01"}],"security":[{"Bearer":[]},{"Cookie":[]}],"components":{"securitySchemes":{"Bearer":{"type":"apiKey","description":"-","name":"Bearer","in":"header"},"Cookie":{"type":"apiKey","description":"-","name":"InSite.WebToken","in":"cookie"}},"schemas":{"SearchUserConnections":{"type":"object","properties":{"ConnectedSince":{"type":"string","format":"date-time","nullable":true},"ConnectedBefore":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false},"UserConnectionMatch":{"type":"object","properties":{"FromUserId":{"type":"string","format":"uuid"},"ToUserId":{"type":"string","format":"uuid"}},"additionalProperties":false}}},"paths":{"/api/accounts/users-connections/search":{"post":{"tags":["Accounts API: Users"],"summary":"Searches for the list of user connections that match specific criteria","operationId":"searchUserConnections","requestBody":{"content":{"application/json-patch+json":{"schema":{"$ref":"#/components/schemas/SearchUserConnections"}},"application/json":{"schema":{"$ref":"#/components/schemas/SearchUserConnections"}},"text/json":{"schema":{"$ref":"#/components/schemas/SearchUserConnections"}},"application/*+json":{"schema":{"$ref":"#/components/schemas/SearchUserConnections"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserConnectionMatch"}}},"text/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserConnectionMatch"}}}}}}}}}}
```

## GET /api/accounts/users/{user}

> Retrieves one specific user

```json
{"openapi":"3.0.1","info":{"title":"Developer API","version":"v2.0.0"},"servers":[{"url":"/v2/e01"}],"security":[{"Bearer":[]},{"Cookie":[]}],"components":{"securitySchemes":{"Bearer":{"type":"apiKey","description":"-","name":"Bearer","in":"header"},"Cookie":{"type":"apiKey","description":"-","name":"InSite.WebToken","in":"cookie"}},"schemas":{"ProblemDetails":{"type":"object","properties":{"Type":{"type":"string","nullable":true},"Title":{"type":"string","nullable":true},"Status":{"type":"integer","format":"int32","nullable":true},"Detail":{"type":"string","nullable":true},"Instance":{"type":"string","nullable":true}},"additionalProperties":{}}}},"paths":{"/api/accounts/users/{user}":{"get":{"tags":["Accounts API: Users"],"summary":"Retrieves one specific user","operationId":"retrieveUser","parameters":[{"name":"user","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}},"text/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## HEAD /api/accounts/users/{user}

> Checks for the existence of one specific user

```json
{"openapi":"3.0.1","info":{"title":"Developer API","version":"v2.0.0"},"servers":[{"url":"/v2/e01"}],"security":[{"Bearer":[]},{"Cookie":[]}],"components":{"securitySchemes":{"Bearer":{"type":"apiKey","description":"-","name":"Bearer","in":"header"},"Cookie":{"type":"apiKey","description":"-","name":"InSite.WebToken","in":"cookie"}},"schemas":{"ProblemDetails":{"type":"object","properties":{"Type":{"type":"string","nullable":true},"Title":{"type":"string","nullable":true},"Status":{"type":"integer","format":"int32","nullable":true},"Detail":{"type":"string","nullable":true},"Instance":{"type":"string","nullable":true}},"additionalProperties":{}}}},"paths":{"/api/accounts/users/{user}":{"head":{"tags":["Accounts API: Users"],"summary":"Checks for the existence of one specific user","operationId":"assertUser","parameters":[{"name":"user","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}},"text/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## POST /api/accounts/users/collect

> Collects the list of users that match specific criteria

```json
{"openapi":"3.0.1","info":{"title":"Developer API","version":"v2.0.0"},"servers":[{"url":"/v2/e01"}],"security":[{"Bearer":[]},{"Cookie":[]}],"components":{"securitySchemes":{"Bearer":{"type":"apiKey","description":"-","name":"Bearer","in":"header"},"Cookie":{"type":"apiKey","description":"-","name":"InSite.WebToken","in":"cookie"}},"schemas":{"CollectUsers":{"type":"object","properties":{"UserIds":{"type":"array","items":{"type":"string","format":"uuid"},"nullable":true},"UserEmailExact":{"type":"string","nullable":true},"UserFullNameContains":{"type":"string","nullable":true},"LastAuthenticatedSince":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false},"UserMatch":{"type":"object","properties":{"UserId":{"type":"string","format":"uuid"},"FullName":{"type":"string","nullable":true}},"additionalProperties":false}}},"paths":{"/api/accounts/users/collect":{"post":{"tags":["Accounts API: Users"],"summary":"Collects the list of users that match specific criteria","operationId":"collectUsers","requestBody":{"content":{"application/json-patch+json":{"schema":{"$ref":"#/components/schemas/CollectUsers"}},"application/json":{"schema":{"$ref":"#/components/schemas/CollectUsers"}},"text/json":{"schema":{"$ref":"#/components/schemas/CollectUsers"}},"application/*+json":{"schema":{"$ref":"#/components/schemas/CollectUsers"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserMatch"}}},"text/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserMatch"}}}}}}}}}}
```

## POST /api/accounts/users/count

> Counts the users that match specific criteria

```json
{"openapi":"3.0.1","info":{"title":"Developer API","version":"v2.0.0"},"servers":[{"url":"/v2/e01"}],"security":[{"Bearer":[]},{"Cookie":[]}],"components":{"securitySchemes":{"Bearer":{"type":"apiKey","description":"-","name":"Bearer","in":"header"},"Cookie":{"type":"apiKey","description":"-","name":"InSite.WebToken","in":"cookie"}},"schemas":{"CountUsers":{"type":"object","properties":{"UserIds":{"type":"array","items":{"type":"string","format":"uuid"},"nullable":true},"UserEmailExact":{"type":"string","nullable":true},"UserFullNameContains":{"type":"string","nullable":true}},"additionalProperties":false},"CountResult":{"type":"object","properties":{"Count":{"type":"integer","format":"int32"},"Summary":{"type":"string","nullable":true}},"additionalProperties":false}}},"paths":{"/api/accounts/users/count":{"post":{"tags":["Accounts API: Users"],"summary":"Counts the users that match specific criteria","operationId":"countUsers","requestBody":{"content":{"application/json-patch+json":{"schema":{"$ref":"#/components/schemas/CountUsers"}},"application/json":{"schema":{"$ref":"#/components/schemas/CountUsers"}},"text/json":{"schema":{"$ref":"#/components/schemas/CountUsers"}},"application/*+json":{"schema":{"$ref":"#/components/schemas/CountUsers"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountResult"}},"text/json":{"schema":{"$ref":"#/components/schemas/CountResult"}}}}}}}}}
```

## POST /api/accounts/users/download

> Downloads the list of users that match specific criteria

```json
{"openapi":"3.0.1","info":{"title":"Developer API","version":"v2.0.0"},"servers":[{"url":"/v2/e01"}],"security":[{"Bearer":[]},{"Cookie":[]}],"components":{"securitySchemes":{"Bearer":{"type":"apiKey","description":"-","name":"Bearer","in":"header"},"Cookie":{"type":"apiKey","description":"-","name":"InSite.WebToken","in":"cookie"}},"schemas":{"CollectUsers":{"type":"object","properties":{"UserIds":{"type":"array","items":{"type":"string","format":"uuid"},"nullable":true},"UserEmailExact":{"type":"string","nullable":true},"UserFullNameContains":{"type":"string","nullable":true},"LastAuthenticatedSince":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false}}},"paths":{"/api/accounts/users/download":{"post":{"tags":["Accounts API: Users"],"summary":"Downloads the list of users that match specific criteria","operationId":"downloadUsers","requestBody":{"content":{"application/json-patch+json":{"schema":{"$ref":"#/components/schemas/CollectUsers"}},"application/json":{"schema":{"$ref":"#/components/schemas/CollectUsers"}},"text/json":{"schema":{"$ref":"#/components/schemas/CollectUsers"}},"application/*+json":{"schema":{"$ref":"#/components/schemas/CollectUsers"}}}},"responses":{"200":{"description":"OK"}}}}}}
```

## POST /api/accounts/users/search

> Searches for the list of users that match specific criteria

```json
{"openapi":"3.0.1","info":{"title":"Developer API","version":"v2.0.0"},"servers":[{"url":"/v2/e01"}],"security":[{"Bearer":[]},{"Cookie":[]}],"components":{"securitySchemes":{"Bearer":{"type":"apiKey","description":"-","name":"Bearer","in":"header"},"Cookie":{"type":"apiKey","description":"-","name":"InSite.WebToken","in":"cookie"}},"schemas":{"SearchUsers":{"type":"object","properties":{"UserIds":{"type":"array","items":{"type":"string","format":"uuid"},"nullable":true},"UserEmailExact":{"type":"string","nullable":true},"UserFullNameContains":{"type":"string","nullable":true}},"additionalProperties":false},"UserMatch":{"type":"object","properties":{"UserId":{"type":"string","format":"uuid"},"FullName":{"type":"string","nullable":true}},"additionalProperties":false}}},"paths":{"/api/accounts/users/search":{"post":{"tags":["Accounts API: Users"],"summary":"Searches for the list of users that match specific criteria","operationId":"searchUsers","requestBody":{"content":{"application/json-patch+json":{"schema":{"$ref":"#/components/schemas/SearchUsers"}},"application/json":{"schema":{"$ref":"#/components/schemas/SearchUsers"}},"text/json":{"schema":{"$ref":"#/components/schemas/SearchUsers"}},"application/*+json":{"schema":{"$ref":"#/components/schemas/SearchUsers"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserMatch"}}},"text/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserMatch"}}}}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.shiftiq.com/developers/api-v2/navigating-the-api/accounts-api-users.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
