We use cookies to try and give you a better experience in Freshdesk.
You can learn more about what kind of cookies we use, why, and how from our Privacy policy. If you hate cookies, or are just on a diet, you can disable them altogether too. Just note that the Freshdesk service is pretty big on some cookies (we love the choco-chip ones), and some portions of Freshdesk may not work properly if you disable cookies.
We’ll also assume you agree to the way we use cookies and are ok with it as described in our Privacy policy, unless you choose to disable them altogether through your browser.
By default the "distinguishedName" is returned by the LDAP type question. Would it be possible to be able to select which attribute is returned?
Example, I would like to be able to return the "userPrincipalName" instead of the DN.
1 Votes
3 Comments
Michael Seidl posted 7 months ago Admin
thanks for making this clear to us, now understand the struggle here.
0 Votes
Gilles Bignens posted 7 months ago
Thank you for the answer and indeed we can do everything with the DN (in AD).
My use case is as follows: I launch an Azure runbook which performs actions only in Entra ID. A simple example is a "Get-MgUser". As you know, in this case, the DN cannot be used and I must therefore make a request in the on-premise AD to retrieve the UPN and then be able to perform my "Get-MgUser".
We have a lot of actions that are unique to Entra ID and based on the users UPN.
A simple text field that asks for the UPN is subject to the users' "typo" so I need to be sure the UPN entered is existing.
The best solution would probably be to use the "Powershell" question type to directly retrieve the information in Entra ID, but it's not as simple as with LDAP... I would need 2 questions to do that (and so 2 parameters in my script), 1 to request the UPN (Text type) and the second (Powershell type) to execute my query in entra ID based on the UPN entered in question 1. And thus validate that the UPN entered in question 1 is existing.
0 Votes
Michael Seidl posted 7 months ago Admin
We had that request from time to time, but we do not understand the reason, cause in the automation you can do all what is needed with the DN.
And we want to prevent the system to get to complex.
1 Votes
Login or Sign up to post a comment