Tagged Questions
1
vote
1answer
84 views
How to programmatically access and manipulate Discussion item and replies?
How to access and manipulate Discussion item and replies?
I have a discussion board that has a check box, based on the input I switch the permissions of that discussion post for a specific user (from ...
1
vote
1answer
71 views
Is it possible to check if a document has unique permissions using SP2010 Client Object Model
I have a 2010 site that has many documents in many different folders. I believe a number of them have broken permission inheritence. Is there a way i can code a C# console app to utilise client object ...
0
votes
1answer
34 views
How to show what level of permission a group or user has to a site?
In SharePoint 2007 when you go to a site and view advanced permissions (Site Actions - Site Settings - Modify All Site Settings - Advanced Permissions) you are presented with a page that has a table ...
1
vote
1answer
47 views
Content DB not getting any permissions on web application created through central admin
I tried to create a Web Application using Central Admin. It created web app without displaying any error, I can browse site too after creating site collection and that, but content db got no ...
1
vote
2answers
1k views
how to give Role permission to list programmatically?
I have set my web permission to Inherit Permissions as well as Lists.and programmatically i have add SPUSER to web with assigned 'Restricted Read' access Role.
and also associate SPUSER to List1 ...
2
votes
1answer
249 views
Show asp.net webpart elements based on user permission level?
I want to do the following:
I have a webpart and two users (not in groups, though, because for a reason I don't understand there are no groups in the productive environment here ;) ).
One stands ...
0
votes
0answers
54 views
SharePoint OOTB Search Web Part Needs Tweaking
I have a SharePoint search web part on my page. I was under the understanding that security trimming is automatically incorporated into the query in but all users can see certain pending documents.
...
1
vote
1answer
39 views
Transfer user permissions
I have a SPListItem for which I need to transfer all directly given permissions from Alice to Bob. It sounds like a common scenario, but still I was not able to find a solution (except third party ...
0
votes
0answers
37 views
Survey Permissions Issue
I want to give a single user permissions to add questions but not to respond to survey but I am not sure which permission level can be used as currently it got "Contribute" permission level and he can ...
0
votes
2answers
164 views
The impact of BreakRoleInheritance()
I call BreakRoleInheritance on a document (the actual list item) in order to assign someone of less permissions the 'contribute' rights to that particular item. In doing that, have I 'broke' the ...
1
vote
1answer
294 views
Item-level permissions on document library
I ultimately want to grant users edit permission only on the items they created.
According to this article:
http://www.hersheytech.com/Blog/SharePoint/tabid/197/entryid/28/Default.aspx
I can do ...
0
votes
1answer
90 views
Simple permissions question
I know how to grant someone certain role to a list (contribute or read for example) using C# such as:
SPRoleAssignment userRoleAssignmentCont = new SPRoleAssignment(allUsers);
...
0
votes
3answers
293 views
Site Collections <target user> is a member of
There is already a webpart for this but it shows subsites etc, which is not the requirement.
What I need is a webpart that will list the Site collections a target user is a member of, and it must be ...
2
votes
2answers
255 views
Uploaded document “modified by” incorrect user
I'm working with a program that uploads to site folders, using C# and WSS3, and I am trying to ensure that it works correctly with Sharepoint permissions.
In my test program for the Frontpage RPC ...
0
votes
2answers
2k views
How to add specific SharePoint Group to List permission with c#?
using (SPSite site = (SPSite)properties.Feature.Parent)
{
using (SPWeb web = site.OpenWeb())
{
if (web != null)
{
web.AllowUnsafeUpdates = true;
SPList list = ...
0
votes
0answers
101 views
Duplicate user permission in SharePoint 2010?
User-A will be replaced by User-B.
Now, User-A is like to duplicate his permission, means that User-B should be provided with the same permission as User-A however User-B’s existing permission should ...
1
vote
1answer
570 views
EventReciever to change permissions
I am trying to create an event reciever on a document library that on creation it removes all permissions and gives the author contribute writes. All other users get nothing.
I have the following
...
1
vote
1answer
787 views
“DWORD (32-bit) Value” or “”Qword (32-bit) Value" - which one should I configure in Windows 64-bit registry?
"DisableLoopbackCheck & SharePoint: What every admin and developer should know" advises to disable ("infamous") "loopback check" completely on dev machine by following
"You receive error 401.1 ...
0
votes
1answer
510 views
Access denied by “Granular Backup”
When I try to copy a custom list from one of subsites of my weapplication's site collection to another by:
Central Administration --> Backup and Restore --> Export a site or list --> Filling ...
0
votes
1answer
105 views
removing then setting custom permissions for a list
I have been looking around for few days, but couldn't really figure out, how I will be able to do this.
what I am doing is removing all permissions of a given list using following code,
using ...
0
votes
1answer
337 views
Listing all the Users/Group, there Type, UserName, and Permissions
Trying to find a C# script that will list me all the groups of Current Web for sake of webpart that will show users the groups and users having permission to a specific web.
I know I can get all the ...
0
votes
3answers
362 views
Access Denied for SPUserCollection.remove()
Works for administrator but not working for a normal user.
I even tried it with "SPSecurity.RunWithElevatedPrivileges(delegate() {});" after breaking RoleInheritance, and even tried ...
0
votes
3answers
167 views
Minimum access required for Visual Studio 2010 on Windows Server 2008
Hi we are trying to set up a SharePoint development environment for multiple developers on Windows 2008 server, we do not want to give the developers admin rights to the servers, does anyone know the ...
4
votes
2answers
220 views
Efficiently determine if a List is using item level security
How can you efficiently determine if any of the items in a List don't inherit their security from the List?
You could use SPListItem.HasUniqueRoleAssignments but this would require iterating through ...
0
votes
1answer
156 views
Right Management
I'm planing a sharepoint application. One part of the solution should be a list. Each list item should have two persons who are allowed to make changes on it (plus two Administratorgroups). The ...
5
votes
1answer
232 views
HTML in SPGroup.Description
I am trying to add a group (SPGroup) programmatically. Everything works fine except for one thing. I would like the group's description to include a link to it's site. Similiar to the look-and-feel in ...
1
vote
1answer
186 views
How can i get entire role assignments from SP 2010 using the COM interface including the users in the AD groups and not the groups names?
I've been trying to get all the RoleAssignments using the COM interface. the problem is that i get the AD user group names instead of the actual users inside the groups.
my code looks something like ...
0
votes
3answers
2k views
Trying to update a SPItem from an asp.net page and get the error “The security validation for this page is invalid”
I am trying to update an SPItem from inside a asp.net page but I am getting the error
The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try ...
0
votes
1answer
1k views
Error loading and running event receiver Microsoft.SharePoint.Publishing.Internal.PublishingWebEventReceiver in Microsoft.SharePoint.Publishing
I am seeing the following error in my application log:
Error loading and running event receiver Microsoft.SharePoint.Publishing.Internal.PublishingWebEventReceiver in Microsoft.SharePoint.Publishing, ...
2
votes
1answer
345 views
hide site action
Is there a way set the site actions drop down to be audience specific. Meaning that as the Owner of the site I want to be able to see it, but for other users (viewers, members, etc) I dont want them ...
2
votes
1answer
83 views
Link to Taxononomy from subweb quicklaunch
Is it possible to create somehow link from some subweb (link is for example placed in quick launch but it's not necessary to be there) to taxonomy page (central administration). For now, I don't know ...
2
votes
1answer
353 views
Is it possible to grant permission for groups (in SharePoint) to a site programmatically?
I am using the SharePoint Object Model to create new sites programmatically (with a custom web part). It works fine but I am wondering if it is possible to grant permission for groups as well?
When I ...
4
votes
2answers
1k views
Execution of code as Application Pool account
Here is what I'm currently trying to do -
1.Create a new instance of a timer job from a web part
2.Add a new site collection to the current web application again from a web part
Each time the code ...
4
votes
5answers
5k views
How to check if a user exists in a group
How can i check if a user (not the current user) exists in a group.
The SPGroup object allows to check if the current user is member of the group, but there is no method that checks if a SPUser given ...
2
votes
1answer
84 views
Running code that creates a TimerJobDefinition outside of Central Admin
I have run into a problem several times now where I have developed a custom timer job, and I want my site collection administrators to manage the schedule of this job with a custom application page ...





