Skip to main content
July 7, 2016
Question

How to get the Custom Service display name on the REST API

  • July 7, 2016
  • 1 reply
  • 2836 views

Hi everyone,

In order to identify, on my integration, which "Customer Service" the user is connected to, it would be great to have the "Display Name" available for consumption at API level.

E.G

When calling the /identity/oauth/token end point to get the authentication token it would be fantastic to have the customServiceName property

Is that available somewhere else?

Here my example

{

access_token: "........",

token_type: ".........",

expires_in: 3367,

scope: "......",

customServiceName: "My Display Name Value"

}

Bests!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Drew_Loika
Level 2
July 11, 2016

Having access to this value would significantly improve our user experience. Is it something Marketo can provide?

Best,

Drew Loika

Product Manager - Cloud

Tableau

SanfordWhiteman
Level 10
July 11, 2016

Well, the display name can be easily changed, so you can't rely on it for any kind of accounting. I see where cosmetically it could be useful, yet there's no telling which custom service that friendly name is assigned to at a given point in time. Only the Client Id and Client Secret are guaranteed to persist over the lifetime of the service.

If you want cosmetic information that you can later read, try Base64-encoding it in the email address of the API-Only User that you request from the client. That address isn't used for any other purpose, and is less likely to be tampered with than the display name (though it's still possible). TXkgQ3VzdG9tIEFQSSBVc2Vy@example.com = "My Custom API User".

Drew_Loika
Level 2
July 12, 2016

Thanks for suggesting a workaround. The goal here is a user-friendly default name when establishing a connection to API. Say I have two Marketo instances, or for some reason (different permission scope?) I have two custom services, how can I tell the difference between them? Sure the client id and secret are meaningful to a computer, but they're not to me when I'm trying to easily determine what I'm connected to.