TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Using CSOM Check Current Logged in User is Exist in Particular Some SharePoint Group
Sushant Kesari
Dec 10
2015
Code
2.9
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
public
bool
IsCurrentUserExistInSPGroup(ClientContext ctx,
string
groupName)
{
Web web = ctx.Web;
ctx.Load(web.CurrentUser.Groups);
ctx.ExecuteQuery();
GroupCollection groups = web.CurrentUser.Groups;
foreach
(Group group
in
groups)
{
if
(group.Title == groupName)
{
return
true
;
}
}
return
false
;
}
CSOM
Is Current User Exist In SP Group
Sharepoint