Is current user site collection administrator in any site collection

Highlighted
New Contributor

Hi all,

 

how can I determine if current user is site collection administrator in any site collection using REST or CSOM in Javascript? This should be done from a Azure Web App.

 

The user logs on to the Web App. And then a check have to de done to see if the user is a site collection administrator in at least one of the existing site collections. If the check fails, the user should be logged off with a note.

 

To ensure that performance does not decrease, this check should be carried out with a single call.

 

Any suggestions?

 

Regards,

Ralf

0 Replies