Get list of user groups to publish to

GET {{baseUrl}}/api/usergroups?offset=0&limit=3

Get information for a specific set of user groups or all user groups. You can refine the set of user groups that are returned with a query parameter that specifies the characters that the user group name must begin with; if you omit the nameBegins query parameter, all user groups are returned. You can limit the results that are returned with two query parameters. The offset parameter specifies the location in the list of users groups to begin returning results and the limit parameter specifies the maximum number of matching user groups that can be returned; if you set the limit parameter to -1, all results are returned (subject to Governing settings). The total count of results returned is included in the response header as x-mstr-total-count. You obtain the authorization token needed to execute the request using POST /auth/login; you pass the authorization token in the request header.

Request Params

KeyDatatypeRequiredDescription
nameBeginsnullCharacters that the name must begin with
offsetnumberStarting point within the collection of returned search results. Used to control paging behavior.
limitnumberMaximum number of items returned for a single search request. Used to control paging behavior. Use -1 for no limit (subject to Governing settings).
fieldsstringComma separated top-level field whitelist. This allows client to selectively retrieve part of the response model. If specified, extra filtering will be applied, and for top-level object (if root model is an array, each array element), only the listed fields will be kept in the response. e.g. "id,elements" means to keep only the "id" field and the whole "elements" array field, omitting all other fields of top-level response model.

HEADERS

KeyDatatypeRequiredDescription
X-MSTR-AuthTokenstring(Required) Authorization token