Skip to main content

How can we get the current user?

  • November 26, 2020
  • 3 replies
  • 2765 views

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!

This topic has been closed for replies.

3 replies

mitchell.hudson

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

You can look at the query here - GitHub - mondaycom/monday-sdk-js: Node.js and JavaScript SDK for developing over the monday.com platform


dipro
Forum|alt.badge.img
  • Leader
  • November 26, 2020

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 } }


  • March 10, 2021

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.