Check Whether person logged in is user or admin in sharepoint -


how check whether person loggen in user or admin checking permissions in sharepoint.

you can use spservices determine permission levels user. can use below code in document.ready function.

$().spservices({  operation: "getrolecollectionfromuser",  userloginname: $().spservices.spgetcurrentuser(),  async: false,  completefunc: function(xdata, status) { $(xdata.responsexml).find("role").each(function() {       alert($(this).attr('name'))    }); 

Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -