Questions tagged [spgroup]
The spgroup tag has no usage guidance.
32 questions
0
votes
1
answer
39
views
Group creation for a site collection is causing threshold exception
We need to create around 9000 SharePoint groups in our site collection with specific names and custom permissions for each, currently we have a console app which will automate the group creation with ...
1
vote
0
answers
148
views
Same Username but Different Domain SPWeb.EnsureUser "User does not exist"
We have configured 2 different domains (Domain1 & Domain2) for people picker settings. Both domains have some similar users ex. Domain1\TestUser1 & Domain2\TestUser1.
This user is getting ...
0
votes
1
answer
237
views
Multilingual PNP provisioning for SharePoint Group
Did anybody try applying localization using PNP Provisioning for SharePoint groups? I have tried but it is not working. Can somebody please help?
<?xml version="1.0"?>
<pnp:...
0
votes
2
answers
611
views
How to update ShqrePoint Group name?
hope everything is fine.
I managed to created / delete SharePoint groups but also add and remove users using HTTP requests.
The problem i'm facing now is ... how can I update the name of a group ??
I ...
0
votes
1
answer
133
views
(C#) Check SPGroup is empty or not
How to check if there are users in the group or not?
string groupName = "Home members";
using (SPSite Site = new SPSite("http://sp/sites/test"))
{
using (SPWeb ...
0
votes
1
answer
121
views
How can I add a user/AD Group to SP when the people picker won't display more that 30 results?
One customer has to add an AD Group to a SharePoint group and there are more than 30 other AD groups in their directory whose name is quite similar.
Of the 30 matches found by the people picker, none ...
1
vote
1
answer
28
views
Customize People address book to show group description
We are using SP2016 on-premise. Is there any way I can show the attribute of SharePoint groups (e.g. group description) in People picker address book?
The problem is our workflow need to assign to a ...
4
votes
1
answer
6k
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
1
answer
144
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
1
answer
169
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
1
answer
372
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
0
answers
398
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
1
answer
2k
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
0
answers
84
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
1
answer
72
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
2
answers
10k
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
2
answers
917
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
1
answer
664
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
0
answers
41
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
1
answer
48
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
1
answer
1k
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
1
answer
410
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
2
answers
2k
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 ...
3
votes
2
answers
4k
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
1
answer
188
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
1
answer
47
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
0
answers
187
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
1
answer
340
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
2
answers
164
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 ...
2
votes
2
answers
841
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
0
answers
362
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
2
answers
503
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. ...