View the original community article here
Last tested: Sep 1, 2020
It is not possible to create API credentials for an embed user, so you should use the login_user endpoint to sudo as an embed user instead. (This endpoint also works for non-embed users if you want to run API calls as those users without creating API credentials for them.)
This content is subject to limited support.