Stamp: display of the AD displayName

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

spkmark
User
Posts: 7
Joined: Wed Mar 16, 2022 2:09 pm

Stamp: display of the AD displayName

Post by spkmark »

I need to display the AD field "DisplayName" (not Name!) for a dynamic stamp.

This works: event.value = identity.loginName OR event.value = identity.Name (all fields in the Identity Tab). But I need the "DisplayName".
Do you know a solution? Thanks a lot!
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6902
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada

Re: Stamp: display of the AD displayName

Post by Paul - Tracker Supp »

Hi spkmark,

identity.name is the right one. It should be pulling your AD "Display Name":

image.png
and from AD:
image.png
and the same in the JS console.:
image2.png
I assume you are seeing something different?
You do not have the required permissions to view the files attached to this post.
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
spkmark
User
Posts: 7
Joined: Wed Mar 16, 2022 2:09 pm

Re: Stamp: display of the AD displayName

Post by spkmark »

Unfortunately identity.name does not give me the display name. Our AD:
AD_1.PNG
AD_2.PNG
Here you can see that there is an employee number in the name, login name and username. Only in the field "DisplayName" is the name in plain text.
xchange_identity.PNG
In the XChange Identity I have only the employee number in the name. The AD field "Display Name" does not exist here. The call of "Identity.name" returns the employee number.
Is there any way to access the AD field Display Name via the PDF XChange?
You do not have the required permissions to view the files attached to this post.
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6902
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada

Re: Stamp: display of the AD displayName

Post by Paul - Tracker Supp »

Thanks for that spkmark,

I am going to have to consult the devs on this to see why it may be pulling the wrong thing. That is German language used, correct? I wonder if that might be influencing what we get.

I'll post here what they say.
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3551
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada

Re: Stamp: display of the AD displayName

Post by Ivan - Tracker Software »

displayName is not available via identity.
But there are firstName and lastName.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
spkmark
User
Posts: 7
Joined: Wed Mar 16, 2022 2:09 pm

Re: Stamp: display of the AD displayName

Post by spkmark »

Works well and is a solution for us. Thanks a lot!
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17949
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Stamp: display of the AD displayName

Post by Tracker Supp-Stefan »

:)
dirk.ott
User
Posts: 2
Joined: Thu May 11, 2023 11:40 am

Re: Stamp: display of the AD displayName

Post by dirk.ott »

Hi together,
2023-05-11 13_50_29-Preferences.png
i´m trying to get the "attribute" for the the "Organization Name".
I got all other attributes:
event.value = identity.name;
event.value = identity.title;
event.value = identity.department;
event.value = identity.email;
event.value = identity.loginName;

Could you please be so kind and give me the value for "Organization Name"?

Best regards
Dirk
You do not have the required permissions to view the files attached to this post.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17949
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: Stamp: display of the AD displayName

Post by Tracker Supp-Stefan »

Hello dirk.ott,

You can get the Organisation Name using the the identity.corporation.

Kind regards,
Stefan
dirk.ott
User
Posts: 2
Joined: Thu May 11, 2023 11:40 am

Re: Stamp: display of the AD displayName

Post by dirk.ott »

Hi Stefan,

thank you so much!!

Best regards
Dirk
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17949
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Stamp: display of the AD displayName

Post by Tracker Supp-Stefan »

:)