I'm not seeing the option in the classic API, or maybe I'm missing the obvious, but is it possible to either get all the groups for a specific site, or query what site a group belongs to? The default query grabs everything, but I'm only interested in groups for a specific site.
Hi there. There's actually another simple way to do what you're after. Just create an API account with Site access, to the specific Site you're interested in. Ensure the account can read the objects you want in the Privilege settings (or just make it a full Site admin) and when you use that account credentials in the API call, it will only display groups within that Site. By default a Site admin cannot pull up groups that aren't assigned to it, or are not global. This is true even when using the API.
Found a workaround, though it involves the above and then querying each individual site in the result to see what site it belongs to. Would be nice if there was an option to specify the site in the above CURL request.
Hi there. There's actually another simple way to do what you're after. Just create an API account with Site access, to the specific Site you're interested in. Ensure the account can read the objects you want in the Privilege settings (or just make it a full Site admin) and when you use that account credentials in the API call, it will only display groups within that Site. By default a Site admin cannot pull up groups that aren't assigned to it, or are not global. This is true even when using the API.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.