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 (220k 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

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 (520 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 (1.8k 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 (1.8k points)
0 votes
1 answer

What do I have to do to give a user the permissions to logon to the Web Interface and to work with objects in AD?

asked May 19, 2011 by jmirks (180 points)
0 votes
1 answer

Does Adaxes all one to setup/configure a custom dictionary with chosen words that will prevent passwords beign set with these words? Example: Many people use "Welcome", "Password", ... set, even from an Admin side when the first password is set for an Account

asked May 10 by dtorannini (20 points)
2,740 questions
2,474 answers
6,475 comments
1,373,573 users