Showing posts from April, 2016

Create a SharePoint group and add users using JSOm

Below code will create a sharegroup and adds login user and a static user to the group.    <div>       <h1>Create SharePoint Group </h1>       <br />       <input id="btnCreateCustomGroup" type="button" value="Create SPGroup" />     </div>     <script src="/Style%20Library/Scripts/jquery-1.12.1.js"></script>      <script src="/_layouts/15/sp.js" type="text/javascript"></script>     <script src="/_layouts/15/SP.RequestExecutor.js" type="text/javascript"></script>     <script src="/_layouts/15/" type="text/javascript"></script>     <script type="text/javascript">     $(function() {       $('#btnCreateCustomGroup').click(btnCreateCustomGroup_Click);     });     function btnCreateCustomGroup_Click() {       var grpName = "DSAuditors1"       var g