0

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?

6
  • 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. Commented Jul 9, 2019 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. Commented Jul 9, 2019 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... Commented Jul 9, 2019 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. Commented Jul 9, 2019 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. Commented Jul 9, 2019 at 11:43

3 Answers 3

0

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

1
  • hi, i can not user Azure Ad for my project. Commented Jul 10, 2019 at 10:18
0

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

0

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

https://graph.microsoft.com/v1.0/users

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 and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.