How to get site owner using JSOM/REST when logged in user has read only access.

currentContext.Site.Owner or REST API, fail with unauthorized access error. As it is just readonly property it should be available to all, but it is not.

EDIT: using REST I am trying /_api/site/owner. or JSOM way context.Site.Owner; I need site owner (Primary Administrator)

Any pointer? Thanks in advance


1 Answer 1


Site Admin or user from specific group? if its from Specific group you can use rest api to get the users. but you have to change group settings to view group members to everyone

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.