Skip to main content
Best answer

How do I get the user's Microsoft Azure AD identity from a Freshservice ticket?


JolteonPixel
Forum|alt.badge.img+1

Hi, I want to add a user to a Microsoft Azure AD Security Group based on who the user logging the ticket is,

how do I grab the user’s Microsoft identity (e-mail address) from a Freshservice ticket the user has logged?

 

Freshservice fields are “requested_for_ ID” which is a number rather than an email address.

Best answer by SamBBest answer by SamB

Hey there @JolteonPixel

You’re right, it doesn’t look like there’s an actual email addressed returned by the Freshservice New Ticket trigger. Usually it’s possible to get around this sort of issue by using a search action to get more details for the user, but I’m not seeing any search actions available for Freshservice currently. So I’d recommend reaching out to our Support Team to request that they open up a new feature request to either have the email address returned by the New Ticket trigger or to have a search user action.

In the meantime, it looks like the Freshservice API has the ability to search for a specific user by ID (See: View a Requester) so you could potentially use Freshservice’s API Request (Beta) action to search for the user and retrieve their email address that way. It’s a bit more advanced to set up as it would involve setting up the actual webhook request but the authentication part is taken care of which can help to simplify things a bit. If that’s something you’d be interested exploring I’d suggest checking out our Set up an API request action guide for more details on how to set it up.

If you run into any issues on that at all just let us know! 🙂

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7733 replies
  • Answer
  • July 19, 2023

Hey there @JolteonPixel

You’re right, it doesn’t look like there’s an actual email addressed returned by the Freshservice New Ticket trigger. Usually it’s possible to get around this sort of issue by using a search action to get more details for the user, but I’m not seeing any search actions available for Freshservice currently. So I’d recommend reaching out to our Support Team to request that they open up a new feature request to either have the email address returned by the New Ticket trigger or to have a search user action.

In the meantime, it looks like the Freshservice API has the ability to search for a specific user by ID (See: View a Requester) so you could potentially use Freshservice’s API Request (Beta) action to search for the user and retrieve their email address that way. It’s a bit more advanced to set up as it would involve setting up the actual webhook request but the authentication part is taken care of which can help to simplify things a bit. If that’s something you’d be interested exploring I’d suggest checking out our Set up an API request action guide for more details on how to set it up.

If you run into any issues on that at all just let us know! 🙂


JolteonPixel
Forum|alt.badge.img+1
  • Author
  • Tinkerer
  • 17 replies
  • July 19, 2023
SamB wrote:

Hey there @JolteonPixel

You’re right, it doesn’t look like there’s an actual email addressed returned by the Freshservice New Ticket trigger. Usually it’s possible to get around this sort of issue by using a search action to get more details for the user, but I’m not seeing any search actions available for Freshservice currently. So I’d recommend reaching out to our Support Team to request that they open up a new feature request to either have the email address returned by the New Ticket trigger or to have a search user action.

In the meantime, it looks like the Freshservice API has the ability to search for a specific user by ID (See: View a Requester) so you could potentially use Freshservice’s API Request (Beta) action to search for the user and retrieve their email address that way. It’s a bit more advanced to set up as it would involve setting up the actual webhook request but the authentication part is taken care of which can help to simplify things a bit. If that’s something you’d be interested exploring I’d suggest checking out our Set up an API request action guide for more details on how to set it up.

If you run into any issues on that at all just let us know! 🙂

nice! As I was waiting for a response I actually just did exactly as you suggested and used the API Request Beta action and managed to get the user’s email address :-)

 

thanks for your help