Skip to main content
Saifylis
Feb 1, 2022 5:23 PM UTC
Solved

How to get Figma user email?

I’m creating a Figma plugin in which I want to recommend the email by which the user is currently logged in with on Figma for further usage of the plugin.

I’ve tried using figma.currentUser but what it gives back is an object with the user’s id, name, color, photoUrl and sessionId. How can I get the email by which the user is logged in with?

This topic has been closed for replies.
tank666
tank666Solution
Feb 1, 2022 6:08 PM UTC

As you may have noticed, this is the REST API documentation. To get a user’s email via the REST API, the user must create and share their Personal access token with you.

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank

4 replies

tank666
Feb 1, 2022 5:31 PM UTC

This cannot currently be achieved with the Plugin API.

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
Saifylis
SaifylisAuthor
Feb 1, 2022 5:34 PM UTC

Is there any other possible way?
Source: (Figma)

This source says something about a “User” object that has the email. I couldn’t fully understand this tough, any explanation would be much appreciated! 🙂

tank666
tank666Solution
Feb 1, 2022 6:08 PM UTC

As you may have noticed, this is the REST API documentation. To get a user’s email via the REST API, the user must create and share their Personal access token with you.

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
Aug 7, 2023 1:22 PM UTC

Can I integrate Figma and Postcards email builder?