Getting user IDs from Notion for API integration

I’m trying to work with the Notion API and need to assign people to database properties. The problem is that I need the actual user IDs to make this work through the API calls.

I’ve been searching online but can’t find clear instructions on how to retrieve these IDs. Most tutorials mention using developer tools but I’m not sure which ones or where to find them.

Can someone explain the process step by step? What’s the easiest way to get Notion user IDs for API purposes?

I hit this same problem a few months ago building a task assignment system. The API endpoint works great, but here’s a quick trick I use during development when I need user IDs fast. Open any Notion page, hit F12 for dev tools, go to the Network tab, then do something with users (edit a person property, view a database with people). You’ll see Notion’s internal API calls - the responses show user objects with their IDs right there. Super handy when you just need a few specific IDs instead of pulling the whole user list. Just clear the network log first so you can easily spot what you need.

Both manual methods work but they’re a pain when you’ve got multiple workspaces or need to sync user data regularly. Hit this same problem building an automated project assignment system that updated Notion databases daily.

Real solution? Set up proper automation. Skip the manual API calls and dev tools digging - build a workflow that grabs user IDs automatically and puts them where you need them.

I use Latenode for this. Simple workflow calls the Notion users endpoint, processes the response, and maps user data however you want. Bonus: schedule it to run automatically so your user ID mappings stay current when people join or leave.

Handles API authentication and error handling for you. Way cleaner than custom scripts or manual lookups every time.

To retrieve user IDs from Notion for API integration, you can access the Notion API’s /users endpoint directly. Make a GET request to https://api.notion.com/v1/users using your integration token, which will return a list of all users in the workspace along with their respective IDs. This method is much simpler than searching through developer tools for the information. Ensure that your integration has the necessary permissions to access user details in the workspace settings, and remember to store the IDs for future reference.

hey, just a heads up! after opening dev tools, when mentioning someone, check the headers not just the response. it’s a lil tricky, but you’ll find the user IDs easily there! good luck!

Here’s another trick that saved me time on a recent Notion API project. If you need user IDs, just export any database as JSON that already has people assigned to it. The user objects with their IDs are right there in the data structure. This works great when you’re migrating or updating workflows since you get the exact user mappings you’re already using. Plus, the exported JSON shows you the full user object structure, which makes it way easier to write your API requests for new assignments.