Sign up ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

1 Answer 1

Use the stand WebRequest class in

HttpWebRequest userReq = (HttpWebRequest)WebRequest.Create(url);
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


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.