0 votes

Is it possible to use the AD profile image in an external application? I was using "ObjectImage.ashx?path={AD Path}" till the previous version to get the profile images in my web application. But since the upgrade to 2018.2 this doesn't seem to be an option.

by (730 points)

1 Answer

0 votes
by (289k points)
selected by
Best answer

Hello,

You can use the following to get a user photo in base 64 format:

http://<host>/Adaxes/api/<WebUI>/directoryObjects/photo/data?key=<ObjectDN|ObjectGuid|ObjectSid>

where

  • host – specifies the name of the computer where Adaxes Web Interface is installed (e.g. adaxes.company.com);
  • WebUI – specifies the name of the Web Interface (e.g. Admin);
  • ObjectDN|ObjectGuid|ObjectSid – specifies the identifier of the object for which to retrieve the photo. You can use the object distinguished name (DN), GUID or SID as identifier.

Important: the approach will work only if you have Auto-Logon enabled for the Web Interface.

0

Excellent! Thank you!

Related questions

0 votes
1 answer

Is there a way for Adaxes to use a user's Microsoft 365 profile pictures instead of having to select a file on a per user basis?

asked Feb 1 by keneth.figueroa (20 points)
0 votes
1 answer

Hi, is it possible to use custom Powershell script to determine, who will be able to modify AD object property (for example managedBy)? So it is not manager of given object who can edit this property, but anyone who pass checks in Powershell script..

asked Apr 7, 2020 by KIT (960 points)
0 votes
1 answer

AD is our identity source for Okta. When a user's AD account locks, the corresponding Okta account locks too. When the user self-unlocks the AD account via Adaxes, the ... there a way where Adaxes can also unlock the Okta account by leveraging Okta's API?

asked May 14 by ma4997 (20 points)
0 votes
1 answer

We have multiple servers in our Adaxes cluster. One of the servers is throwing an error of "Access is denied." before a login page even comes ... step) +75 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +158

asked Aug 27, 2020 by mark.it.admin (2.3k points)
0 votes
1 answer

Or is there another solution to solve this?

asked Sep 15, 2022 by boris (530 points)
3,550 questions
3,240 answers
8,233 comments
547,827 users