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 (270k 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 (910 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 (450 points)
0 votes
1 answer

I think this started happening back in August when we updated to the current version (3.13.18.106.0). We are not sure though because this only affects the web page ... We would prefer not to allow access through a firewall for this. Screenshot of the error:

asked Nov 23, 2020 by mark.it.admin (2.3k points)
3,326 questions
3,025 answers
7,724 comments
544,676 users