This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves the groups of a specific type that grant access to a site resource.
Groups are what the site's dashboard calls member roles, including the roles that apps create, such as one for each pricing plan. Site members get access to a resource through the groups they belong to.
For example, to find the pricing plans that protect a members-only page,
specify the page ID as resourceId and "plan" as type.
For groups of type "plan", the group ID is the pricing plan ID.
The response includes groups of the current site, sorted by title. The built-in Admin and Member groups aren't included.
The list is empty if no group of the requested type grants access to the resource, for example for a page that every visitor can view, or for a resource of another site.
Site visitors and members can retrieve groups of type "plan" and no other type.
There is 1 error with this status code.
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.