Add user to SharePoint Group.

Jul 19, 2011 at 1:41 AM

Hi All,

I'm trying to explore more on SPServices and I would like to know which exact SPServices can be used to add user to particular SharePoint Group.

For example, I would like to add a custom button that which I called it as "Subscribe This". If they user click the button, SharePoint will add them to particular group and the benefits of this group is we can send email to them when we set a particular date to give an email.

For example, alert email or vacation email.

Anyone can point me to the right direction about this matter?

Jul 19, 2011 at 1:51 AM


If you want to add a user to a group, the Web Service you want is Users and Groups and probably the AddUserToGroup operation.

The tricky part is that the user needs to have permission to add themselves to the group. In most cases that wouldn't be the case, as you want to be able to manage groups more carefully than simply allowing anyone to add themselves to a group.