Use the API with a user with 2FA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 07:41 AM
Hello,
I am working with a standard user account (admin) that has 2FA enabled and I want to configure API access using the username and password of this user.
For example, the Table API https://<instance>.service-now.com/api/now/v2/table/sys_hub_flow or the Stats API.
I know that I can use the API using basic auth using <username>:<password><2FA token>, but I want to make several calls that may take more than a minute to complete, and I don't want to enter the 2FA token multiple times.
I also don't want to disable editing for the user, nor to create an integration user/OAuth client ID/secret, I need to use the user's credentials.
Is it possible in some way (for example, to fetch some token/cookie)?
Can I use the Table/Stats API with my user despite having 2FA enabled?
Thank you for your assistance