API calls can fail when made through a user while "Login Expires After Inactivity" is enabled
Trailblazer Community

API calls can fail when made through a user while "Login Expires After Inactivity" is enabled

Marketing Cloud Admin , Marketing Cloud API

Last updated 17 days ago ·Reference W-11017801 ·Reported By 4 users

In Review

Summary
When making API calls through a user that is denoted as an API user that is not used to login through the MC UI, the Security Setting "Login Expires After Inactivity" can prevent API calls from succeeding once the duration is exceeded.

Repro
- Create a new user
- Go to Security Settings and update "Login Expires After Inactivity" to anything other than Never Expires
- While in Security Settings also update "Enable Username and Password for Web Services" to true.
- Login as the new user and then log out.
- Wait the duration of the selection made for the "Login Expires After Inactivity" setting
- Attempt an API call through the user created in the first step.

Workaround
- Option 1: Use an installed package and a rest token for authorization instead of username and password.
- Option 2: Login as the API user prior to expiration.
- Option 3: Set "Login Expires After Inactivity" to "Never".

Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.