Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [spgroup]

The tag has no usage guidance.

1
vote
1answer
16 views

Difference between SharePoint group, office 365 groups & AD Groups

why one has to opt for different set of groups in office 365? how this differentiation can help us? what would be ideal use case to implement each groups with in the office 365 environment?
0
votes
0answers
18 views

SP Group Cannot Be Found

I encountered an error in the following method based on the log error as follows: Group cannot be found. at Microsoft.SharePoint.SPGroupCollection.GetByID(Int32 id) at Site.Subsite.ERMS....
0
votes
1answer
17 views

How to leverage Assigned to equals to [Me] for a SP or O365 group

I have a task list (SPonline OOTB) setup and in the AssignedTO people picker column i want to assign tasks to O365/SP Groups and not to a single user as that's the requirement. The MY TASks view uses ...
0
votes
1answer
49 views

SharePoint 2013 - GroupUserAdded event receiver not firing when adding user programmatically to group

I've added a GroupUserAdded event receiver to a SPWeb and confirmed the correct deployment via SharePoint Manager. Additionally, the call to the receiver class is working fine when adding a user via ...
1
vote
1answer
38 views

SharePoint 2016 OnPrem - Is It recommended to make changes to SecurityTokenServiceConfig

Today we landed into a typical AD group to SharePoint group sync issue scenario. Created a group in AD which has 10 users. Update Site Permissions to set Visitors (Read) access to a SharePoint group....
1
vote
0answers
143 views

SharePoint + “/_api/SP.Utilities.Utility.SendEmail” + not working for specific account

Ours is a SharePoint 2016 On Prem env. We have developed a custom component which uses "/_api/SP.Utilities.Utility.SendEmail" to send email. Email is getting sent. Except for a specific account. ...
0
votes
0answers
20 views

Adding outlook DL members into a SPO site's Visitors Group

Am having a outlook DL with 600 members. As per my requirement, I want to add these 600 users into my SPO site's Visitors group. is there any way , i can do this, like programmatically extracting the ...
-1
votes
0answers
13 views

Cannot add AD Groups that have @ character in their display name

I have couple of groups that have @ character in their display names in Active Directory (Example: IT@domain.com). When I try to add this group in SharePoint I am unable to see it (I have set this ...
0
votes
1answer
725 views

PowerShell Get all users from a subsite

I'm trying to get all the users that have access to a specific subsite in a SharePoint 2010 environment. When I lookup the SiteGroups of an SPWeb object, I get all the groups of the site collection, ...
1
vote
0answers
62 views

Assign FBA role in SharePoint 2013 Group programmatically

I have created a SharePoint group programmatically. I want to assign a FBA role in that created group. I am able to add SharePoint/FBA users but not able to add a FBA role. Kindly let me know, how can ...
0
votes
1answer
66 views

What is the best Object type i can use that represent a site column of type People or Group, which can hold SPUser or SPGroup

I am working on an Event Receiver for my SharePoint farm 2013. now i have a site column of type "People or Group", and this site column can hold User Name/s OR group names. so inside my Event ...
1
vote
2answers
4k views

How to get SharePoint group ID from group Name or Title

How can I get MemberGroupId (Here 135) of particular SPGroup programmatically (Sharepoint 2010, C#) if I have SPGroup Name/Title? I can get a group by ID as given below. SPGroup group = web....
2
votes
1answer
529 views

Update SharePoint Group Owner

I'm trying to update the Owner of a SP Group. This is what I've tried: import pnp from "pnp"; let newgroup = {}; pnp.sp.web.siteGroups.getByName("BA_Actuarial").get().then(function(g) { ...
1
vote
1answer
268 views

Create groups and assign permission level using powershell and reading csv

Some of my groups were deleted due to some mistake, wanna create a new group and apply permission level on these groups. is there any way I can do these using PowerShell by reading a CSV file like ...
3
votes
0answers
37 views

Remove SPGroups from SP 2013 On-Prem SiteCollection -Special Case

When an item is added in the list, I need to create 4 SPGroups dynamically with the title of the SPList fetched in the ItemAdded method. Due to some mistakes in the event receiver code, the number of ...
1
vote
1answer
27 views

Add a user in a sharepoint group using powerhsell?

I would like to know how to add a SharePoint user in a SharePoint group. This snippet is working for some accounts and doesn't not for some others. Why ? Note: When I using the SharePoint UI to add ...
0
votes
1answer
461 views

How to Check if current user is a member of “Admin Team” or item owner ? SharePoint 2013

I need to check whether Current User is a member of a group [in my case Admin Team] or Item owner ie item is assigned to him as a "Project Owner"[sharepoint field] . If the user doesn't belong to any ...
0
votes
1answer
194 views

Checking if a user is a member of a SP Group within a SharePoint Add-on

I have a SharePoint Add-on for Office 365. It is currently a SharePoint Hosted app and I would like to keep it that way. My Problem is I am trying to find out if a user is a member of a group either ...
4
votes
2answers
887 views

Validate Peoplepicker column to check if user belongs to a specified group

I have a people picker column "Assigned person" . I need to check on PreSaveAction() that entered user/s belong to a SharePoint group "Project leaders" or not. Any suggestion how do I get this done ...
2
votes
2answers
700 views

Get all groups for a specific web site (NOT SITE COLLECTION) using powershell?

I would like to know how to get all groups of a specific web site using powershell. I do know that all groups are defined at the site collection level but when browsing in a specific web, it only ...
1
vote
1answer
125 views

PowerShell script to check the property of Who can view the membership of the Group

Is there any powershell exists , wherein i can check the property of a SPGroup "who can view the membership of the group" in my site collection?
0
votes
1answer
32 views

Is it possible to read members of a SharePoint group created on my main site from a subsite with exclusive permissions?

I need to read the members of a SharePoint group created in my main site from a subsite with exclusive (non-inherited) permissions, but without having to grant read permissions to the main site. ...
1
vote
0answers
80 views

Removing SiteGroups is slow (2013 on-premise)

I have a request to remove 100s of sitegroups, so I am simply using powershell to loop through the list of groups and remove the groups. The issue is that this is veerrrrrry slow, it is taking minutes ...
1
vote
1answer
63 views

How can i prevent Members of a SharePoint Group to see other members of the same group?

How can i prevent Members of a SharePoint Group to see other members of the same group? The user should not see other members.
0
votes
2answers
70 views

How to prepare solution: Sharepoint Group and Active Directory Group

How do I prepare a solution which does this: When we add a new user to a Sharepoint Group, it should automatically add the user to an Active Directory Group. This should create two groups with the ...
1
vote
2answers
489 views

Add user to SPGroup not working properly

I have wrote following code to add users to SharePoint group. It works fine and add user to the group first time. But if I remove the user from site manually and re run the app there is no exception ...
0
votes
0answers
210 views

How to remove user form SPGroup using SPServices

I am using below code for removing user from particular group using SPServices. In complete function alert is showing success, but in XData it is displaying User does not exist or is not unique. I ...
4
votes
2answers
278 views

SPUser.Groups is empty

I have an SPUser object generated from the currently logged in user via SPContext.Current.Web.CurrentUser however user.Groups is coming back empty. I checked the group, the user is in the group. ...