> For the complete documentation index, see [llms.txt](https://interfacing.gitbook.io/interfacing-help-files/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://interfacing.gitbook.io/interfacing-help-files/interfacing-help-files-fr/developpeurs-de-solutions/api-and-information-repository/api-rest/cas-dutilisation-et-exemples/recuperer-les-taches-de-lutilisateur-actuel.md).

# Récupérer les tâches de l’utilisateur actuel

Le point de terminaison `GET /users/me/actions` récupère la liste des tâches, ou actions, attribuées à l’utilisateur actuellement authentifié dans IMS. Il prend notamment en charge les cas d’utilisation suivants :

* Dupliquer des données dans une plateforme tierce.
* Afficher des tâches, des échéances ou des approbations dans des systèmes externes.
* Créer des widgets filtrables pour des portails internes.

***

## Démarrage rapide

* **URL de base du point de terminaison :** <https://YOURIMS.interfacing.com/api/v1/users/me/actions>
* **Authentification :** obtenez un jeton valide. Consultez [Authentification et gestion des jetons](/interfacing-help-files/interfacing-help-files-fr/developpeurs-de-solutions/api-and-information-repository/api-rest.md#authentification-et-gestion-des-jetons).
* **URL Swagger :** <https://YOURIMS.interfacing.com/api/v1/swagger/#/Action/findActions>

{% hint style="info" %}
Ce point de terminaison récupère les tâches de l’**utilisateur actuellement authentifié**. Pour accéder aux tâches d’un autre utilisateur, authentifiez-vous **en tant que cet utilisateur**. Les administrateurs système ne peuvent pas récupérer les tâches d’autres utilisateurs avec ce point de terminaison.
{% endhint %}

***

## Exemple de requête

```yaml
09:52:17.722 request:
2 > GET http://example/api/v1/admin/actions/848F911D-463C-414B-8319-D99092FB4307
2 > Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9....
2 > Host: example
2 > Connection: Keep-Alive
2 > User-Agent: Apache-HttpClient/4.5.13 (Java/11.0.15)
2 > Accept-Encoding: gzip,deflate
```

***

## Exemple de réponse

```json
09:52:17.749 response time in milliseconds: 27
2 < 200
2 < Connection: keep-alive
2 < Cache-Control: no-cache, no-transform, no-store
2 < Content-Type: application/json
2 < Content-Length: 1343
2 < Date: Tue, 03 May 2022 13:52:17 GMT
{
  "targetNodeSequenceNumber": "",
  "onLatestVersion": false,
  "parent": {
    "@type": "NameElement",
    "name": "Default Process Set",
    "nodeType": "PROCESS_SET",
    "nodeId": "0D6AF657-0C16-04E4-50BB-19E9A9D0FCBC"
  },
  "onVersion": null,
  "nodeVersionId": "5CFE531B-5962-4B52-8187-C61E4D2BB832",
  "dueDate": "2022-09-09",
  "actionUrl": "https://training.interfacing.com/new-process",
  "postId": null,
  "creationDate": "2022-05-03T09:52:17.697-04:00",
  "targetNode": {
    "@type": "NameElement",
    "name": "52b5281b-a762-4c48-8816-4e7fc3e56243",
    "nodeType": "PROCESS",
    "nodeId": "209A8A23-4C6C-4EFE-B5E2-914136E12EBF"
  },
  "targetVersion": null,
  "sentBy": {
    "firstName": "Administrator",
    "lastName": null,
    "phone": null,
    "name": "Administrator (epcadmin)",
    "principalId": "75EBC033-E8F2-010A-B97B-30B91435B9F4",
    "middleName": null,
    "email": null,
    "username": "epcadmin"
  },
  "actionType": "TRAINING",
  "targetNodeVersionId": null,
  "onNextPublished": false,
  "actionId": "848F911D-463C-414B-8319-D99092FB4307",
  "onLatestPublished": false,
  "comment": "New process basic training",
  "user": {
    "firstName": null,
    "lastName": "c9bcadb7-a89b-46ee-803c-9ac8c76e3f84",
    "phone": null,
    "name": "c9bcadb7-a89b-46ee-803c-9ac8c76e3f84 (c053d3e8-83f8-4024-a75b-a6bd21c1fca6)",
    "principalId": "BDB163C4-EC93-412F-8A02-A8D9B1048E1E",
    "middleName": null,
    "email": "59f81e47-84a6-4872-a3f9-5a7bbd0e7f9f@abc.com",
    "username": "c053d3e8-83f8-4024-a75b-a6bd21c1fca6"
  },
  "targetUrl": null
}
```

***

## À quelle fonctionnalité IMS cela correspond-il ?

IMS inclut un **module Liste de tâches** qui centralise toutes les tâches attribuées à un utilisateur, comme les approbations, les formations à terminer et les confirmations.

Ces tâches sont filtrables et triables. Les utilisateurs peuvent les terminer directement dans le module. Ils restent ainsi organisés et suivent leurs responsabilités.

Pour en savoir plus sur le fonctionnement des tâches dans IMS, [cliquez ici.](/interfacing-help-files/interfacing-help-files-fr/end-users/to-do.md)

***

## Voir aussi

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td>Authentification et gestion des jetons</td><td><a href="/interfacing-help-files/interfacing-help-files-fr/developpeurs-de-solutions/api-and-information-repository/api-rest.md#authentification-et-gestion-des-jetons">API REST</a></td><td><a href="https://content.gitbook.com/content/AgpNu7XmgN3Z9B8kIShD/blobs/DQLtctQLTOs0sgjURwgJ/IMS-V16-NAV-Home-Icons-5.png">IMS-V16-NAV-Home-Icons-5.png</a></td></tr><tr><td>Référence de l’API (Swagger)</td><td><a href="/interfacing-help-files/interfacing-help-files-fr/developpeurs-de-solutions/api-and-information-repository/api-rest/api-reference-swagger.md">API Reference (Swagger)</a></td><td><a href="https://content.gitbook.com/content/AgpNu7XmgN3Z9B8kIShD/blobs/ony9eUVasEC7cHrPfFn0/IMS-V16-NAV-Library-Icons-41.png">IMS-V16-NAV-Library-Icons-41.png</a></td></tr><tr><td>Effectuer d’autres cas d’utilisation</td><td><a href="/interfacing-help-files/interfacing-help-files-fr/developpeurs-de-solutions/api-and-information-repository/api-rest/cas-dutilisation-et-exemples/effectuer-dautres-cas-dutilisation.md">Effectuer d’autres cas d’utilisation</a></td><td><a href="https://content.gitbook.com/content/AgpNu7XmgN3Z9B8kIShD/blobs/q1F1diigeTjKR94GHSiL/IMS-V16-Intro-7.png">IMS-V16-Intro-7.png</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://interfacing.gitbook.io/interfacing-help-files/interfacing-help-files-fr/developpeurs-de-solutions/api-and-information-repository/api-rest/cas-dutilisation-et-exemples/recuperer-les-taches-de-lutilisateur-actuel.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
