Tuesday, January 3, 2017

Check Current user is an Admin or not

SPUser.IsSiteAdmin Property

SP.User.isSiteAdmin property (sp.js)


if(currUser.get_isSiteAdmin)
{
console.log("Current user is site Admin");
}
else{
console.log("Current user is not site Admin");
}

No comments:

Post a Comment

🚀 Building a Copilot‑based Meeting Scheduler (POC) using Microsoft Graph & Power Automate

  A practical, step‑by‑step guide for the Microsoft community 📌 Why this article? Many teams are exploring Copilot Studio to build convers...