How to impersonate a user in Strapi when using API tokens?

48 Views Asked by At

I am calling Strapi v4 REST API endpoints authenticated via an API token.

My problem is that any resource created this way has its created by field empty. Is it possible to use an API token to impersonate an actual admin user, so that resources will have proper ownership?

I am looking for either a plugin or a code solution. I also have control over the API calls so I can pass any needed headers.

0

There are 0 best solutions below