demo has 'getUserInfo', documentation does not...??????? :) :)

Sep 25, 2012 at 2:03 PM

IS it possible to use this library to get user info??

I'd like to check if the currently logged in user belongs to a specific group, then redirect according to user name, else do nothing.

That will take awhile to do and I do not have server-side access, only client-side...

Thank you, Tom 

Sep 25, 2012 at 7:11 PM

Marc had an article in 2010 that may help:

http://sympmarc.com/2010/01/29/determining-if-a-user-is-in-a-permission-group-with-sharepoints-web-services/

Sep 25, 2012 at 7:28 PM

I need to test for AD group not SharePoint group, sigh...

Sep 26, 2012 at 1:36 AM
Does not sound like you have looked a the documentation.
Take a look at the GetGroupCollectionFromUser operation of
the Users and Groups Service. The link posted by @glaushine is also a good resource.
Also, the GetUserInfo operation is documented here: http://msdn.microsoft.com/en-us/library/ms774637.aspx

"sigh...."

_____
Paul

Sent from mobile device.


On Sep 25, 2012, at 3:28 PM, tlyczko <notifications@codeplex.com> wrote:

From: tlyczko

I need to test for AD group not SharePoint group, sigh...

Sep 26, 2012 at 2:31 PM
Edited Sep 26, 2012 at 2:36 PM

THIS page does not mention anything about getuserinfo:

http://spservices.codeplex.com/documentation

It is THIS page I was talking about in my original post.

"sigh..."

I'm also not a C#/VB programmer like most of the people who post to TechNet. I'm an IT generalist by the nature of where I work though I happen to have a lot of website design/development experience. In other words I'm not a SharePoint expert.

However I'll re-read Marc's blog several times and try it and see what happens etc.

Thank you, Tom

Coordinator
Sep 26, 2012 at 9:56 PM
Edited Sep 26, 2012 at 9:57 PM

Tom:

If you want to know if a user is in an AD group, SPServices can't do it. However, you can call the Users and Groups Web Service, probably using the GetUserCollectionFromGroup operation based on what you say you want to do, with SPServices.

M.

Sep 27, 2012 at 12:41 PM

Thank you for taking time to reply.

I figured out that evaluating the current URL and the username does enough of what I need.

Thank you, Tom