Look for a way to reference a SharePoint group in my workflow. I want to set a variable equal to the group. Not sure how to do that?

  • Reference it how? To get the name? To get the members? To determine which groups a user are part of? To email the members? To assign something to them? As a text variable? – Graham Apr 10 '15 at 16:03
  • I'm trying to get the Group's email address. – jviola Apr 14 '15 at 14:51
  • Is this in Designer or Visual Studio? Are you looking to send an email or just get the email address to use as a string elsewhere? – Graham Apr 14 '15 at 16:37
  • I wanted to get the email address and set it as a variable to send emails. – jviola Apr 15 '15 at 20:50
  • Is this in Designer or Visual Studio? – Graham Apr 15 '15 at 21:08

in my Visual Studio workflow I just reference either the group's name as a string or the groups ID.


Go into your workflow in SharePoint Designer (assuming 2013 as you didn't specify), add an email action and set the desired target (To/CC/BCC) to whichever group you'd like from the 'Select from existing users and groups' list on the left and hit add. It should email the group directly. No need to involve a variable in the equation.

If for some reason, you really wanted to, you could add a variable and then use a web service call to one of the REST services to get the user's email address as a string and then assign that to a variable, but that's needlessly complicating things.

A quick visual tutorial can be found here.

  • Thank you for the response. I had a security group from ad setup for permissions in SP, but couldn't find them in the list. I set up a SharePoint group and now that shows up in the list and I can email the users of that group. – jviola Apr 17 '15 at 14:28
  • I've seen in another workflow that a variable was set for groupname@domain.com and then in the address they referenced the Variable and it would email the group members. I tried that and for some reason it doesn't email the address of the variable. – jviola Apr 17 '15 at 14:29
  • SharePoint is finicky that way. It prefers to do everything through its user/group list and active directory tie-throughs. If you have to send emails to users/groups/email addresses outside of that, you have to use web services or custom code to communicate and have emails sent. It's arduous and best to just use the options provided out of the box. – Graham Apr 17 '15 at 17:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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