I have html button on sharepoint online site page and i want to validate whether current user is part of AD user or not using this button. i know jquery can not directly validate ad user so i want to write down powershell command which validate AD user and this ps script should be run by jquery on sharepoint page using content editor webpart which can have html button on it ?
can anyone help me here?
Thanks