How can we get the current user?

If two people are using the same custom board (React App), how can we get information for each user? We want to figure out which one is a member of the workspace, and which is a guest? I wasn’t too sure how the board could access this info using the Monday sdk. Thanks!

Hi @driftgod99, you can get the user id by using the sessionToken value from the SDK.

You can look at the query here -

To add on to what Mitchell said, you can also use our API’s “me” field to return the current user’s information. Here is an example: { me { id name } }