In this post i will show how to get user, In sharepoint we can get user role from
client object model in javascript. Here in the following 'user' object we can know that user details.
From that in my scenario i'm getting user role to checkthat he is admin or not in "value".
var user = SP.ClientContext.get_web().get_currentUser();
var value = user.get_isSiteAdmin ();
Thanks for providing your information and keep share with us Azure Online Training Bangalore
ReplyDelete