Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 225349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:24:16+00:00 2026-05-11T19:24:16+00:00

Im trying to run a command on the AddUserToGroup method via webservices (UserGroup.asmx). I

  • 0

Im trying to run a command on the AddUserToGroup method via webservices (UserGroup.asmx).

I set up the code as follows.

//set up the user group
userGroup = new UserGroup.UserGroup();
userGroup.Url = vtiBin + "/UserGroup.asmx";
userGroup.Credentials = CredentialCache.DefaultCredentials;

So I have my credentials being passed to the webserive. Now I run the following

userGroup.AddUserToGroup("System Group", preferedName, userLogin, email, "");

this throws an exception, my account does not have permission. however if I run this code under a different user with GOD access it works

What is the minimum required permission??

I have given my account

  • Full Access to the User Information List (on the sharepoint site)
  • Manage Analytics, Manage Audiences, Manage User Profiles, Personal Features, Personal Site, Set Permissions (sharedServices Admin, Personalization services permissions )
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T19:24:16+00:00Added an answer on May 11, 2026 at 7:24 pm

    Couldn’t this also have more to do with the permission to manage the group rather than permission to use the web service? I know I’ve run into similar situations via the UI before, and it turned out that I didn’t have permissions to edit the group’s membership. I believe there are a few situations in which you have permission to edit a group’s membership:

    • You are the creator of the group
    • The creator of the group (or a site collection administrator) designated you as an owner of the group
    • The group was configured to allow all group members to edit its membership, and you are a member of the group
    • You are a site collection administrator

    Is it possible that none of those conditions fit for you?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to run group command via mongo shell db.contract.group({ key:{id: 1}, initial:
I'm trying to run my Silverlight tests via a command line (eventually MSBuild) working
I'm trying out the Runtime.exec() method to run a command line process. I wrote
I'm trying to run a command as a different user and save the return
I'm trying to run a command on a remote server via SSH from a
I'm trying to run a command via command prompt from an ASP.Net web application.
I am trying to run cmd command in windows application in C#. My code
I'm trying to run ssh command in Eclipse this way ExpectJ exp = new
I am trying to run in command line tool the following code: #import <Foundation/Foundation.h>
Trying to run the following command in php to run powershell command... the following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.