Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
check if user has full permissions for Sharepoint List
WhatsApp
Sagar Pardeshi
Jun 20
2014
1.2
k
0
0
SPUser user = SPContext.Current.Web.CurrentUser;
SPWeb oWeb = SPContext.Current.Web;
SPList oList = oWeb.Lists["MyList];
string
status=
string
.Empty;
if
(oList !=
null
)
{
if
(oList.DoesUserHavePermissions(user, SPBasePermissions.FullMask))
{
status =
"Administrator"
;
}
else
{
status= =
"NonAdministrator"
;
}
}
full permissions for Sharepoint List
Up Next
check if user has full permissions for Sharepoint List