SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm encountering some problem adding by code users from another domain (in my farm I have trust for 2 domain). If I use People Picker, everything goes fine... So I ask u.. It's possible to create an http request like the one called by poeple picker? Something like:

HTTP 1.1    
POST /sites/MySite/_layouts/aclinv.aspx?GroupId=147&IsDlg=1 HTTP/1.1 , NTLMSSP_NEGOTIATE

How can i do to repropose this scenario? Thank you very much!

share|improve this question

Use the stand WebRequest class in asp.net

HttpWebRequest userReq = (HttpWebRequest)WebRequest.Create(url);
userReq.AllowAutoRedirect=false;
userReq.Credentials = new System.Net.NetworkCredential("user", "PASS", "<url>");
HttpWebResponse serverResponse = (HttpWebResponse) userReq.GetResponse();

Hope it helps, C:\Marius

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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