I have a set of Sharepoint groups to be created with RestApi. But before creating i have to check if the group doenst exist already and then create. Is there a way to send multiple group names and find out if they are already present?

1 Answer 1


You could call /Web/SiteGroups with multiple $filter values, e.g.,

_api/Web/SiteGroups?$filter=Title eq 'GroupA' or Title eq 'GroupB'

Afterwards you would have to cross-reference results with your own names, e.g., with underscore:

_.difference(yourGroupNames, _.pluck(groups, 'Title'))


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.