0
                if (user.get_isSiteAdmin()) {
                  document.cookie = "licence=yes";

                }

I am using user.get_isSiteAdmin() but its always giving value false I can not give

"Site Collection - Full Control"

is there any other way to get site administrator ?

1 Answer 1

0

You could check your site administrator here: enter image description here https://docs.microsoft.com/en-us/sharepoint/manage-site-collection-administrators

1
  • I have already checked site-admin there its giving value false when I get site admin int his condition ` if (user.get_isSiteAdmin()) { document.cookie = "licence=yes"; }` Actually I want to redirect to site admin on specific page and other user to on other page its redirecting both on same page
    – Asjad Ali
    Commented Sep 2, 2020 at 11:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.