SpRestLib icon indicating copy to clipboard operation
SpRestLib copied to clipboard

SP Rest API support for adding Groups

Open DavidPratten opened this issue 5 years ago • 2 comments

It appears that SP REST Api support for adding and updating groups is relatively weak compared wtih other APIs. Is there anything that can be done witha d]

DavidPratten avatar Jan 17 '19 11:01 DavidPratten

Something like these methods?

sprLib.site().groups().create('QA-Owners')
sprLib.site().groups('Dev-Owners').addUser({ id:12345 })
sprLib.site().groups('Dev-Owners').removeUser({ id:12345 })

gitbrent avatar Jan 18 '19 04:01 gitbrent

Yes definitely.

Can we then set the group owner to a site wide standard "Site Owners" group rather than the current user? And then the gross site access to read, or perhaps the default is read?

Thanks

David

On Fri, 18 Jan 2019 at 3:58 pm, Brent Ely [email protected] wrote:

Something like these methods?

sprLib.site().groups().create('QA-Owners')sprLib.site().groups('Dev-Owners').addUser({ id:12345 })sprLib.site().groups('Dev-Owners').removeUser({ id:12345 })

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gitbrent/SpRestLib/issues/47#issuecomment-455427974, or mute the thread https://github.com/notifications/unsubscribe-auth/ABlyL8ehtL28Z6RvG_FHkcTthRxzUj1Mks5vEVRngaJpZM4aFCcY .

--

All the best,

David Pratten

Personal: [email protected] Mob: 0432 844 444 Postal: PO Box 1011, Sutherland NSW 1499, AUSTRALIA

Work: [email protected] Senior Project Manager Wesley Mission Mob: 0429 420 885 Office: 220 Pitt St, Sydney 2000

DavidPratten avatar Jan 18 '19 06:01 DavidPratten