I'm new into SharePoint, i searched a lot for how to get Active Directory data into android using REST API, but i could not found any suitable solution up to that, for example i want to access logged user email id or user name into my autocomplete text view. any idea?

  • Why go through SharePoint for Active Directory data? SharePoint may not have all that AD has. Or are you referring to the user profile service? Your question is not clear. – teylyn Jul 9 '19 at 10:17
  • @teylyn i want to get value form AD into json object form but i did not able to found any solution yes i already go through the docs but it seem its not accessible to out side. yes i'm want to AD using user profile service. – subhash Jul 9 '19 at 10:19
  • you sound a little bit breathless and pressed. Maybe you need to step back, calm down and explain what you want to achieve, regardless of tech like Android and SharePoint. Edit your question and provide some background. What are you trying to do? Big picture... – teylyn Jul 9 '19 at 11:29
  • @teylyn sure, i just want to retrieve the AD value and parse into spinner thats it, but some developers said its seem we cant access AD data. – subhash Jul 9 '19 at 11:36
  • Your question is still very vague. I have no idea what you want to achieve. What do you want to get from SharePoint? What "AD Value"? AD has dozens of fields for a user. – teylyn Jul 9 '19 at 11:43

I don't think the Active Dirctory has rest API (you have one with Azure AD). But From what I understand you want to get the basic info about currently logged in user. Have a look at this answer should give you the right place to start. get current user info using jquery ,REST and csom

  • hi, i can not user Azure Ad for my project. – subhash Jul 10 '19 at 10:18

While you are using SharePoint Online so yes you can by using API Graph Azure Active Directory


In SharePoint Online, if you want to get all the users from the Azure AD, we can use Graph API to achieve it.


If you use SharePoint on-premise and use AD, we can create a custom REST API and use server code to get the AD users, then consume the REST API in your Android App.

Or we can synchronize the AD users to a SharePoint lists, then using the OOTB REST API to achieve it.

The following articles for your reference.

SharePoint 2013: Create a Custom WCF REST Service Hosted in SharePoint and Deployed in a WSP

How to Synchronize Active Directory Users to a SharePoint List

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.