Get Group Bindings landing.site.getGroupBindings
We are still updating this page
Some data may be missing — we will complete it soon.
Scope:
landingWho can execute the method: any user
The method landing.site.getGroupBindings allows you to find out if there is a binding to a group, or what bindings to groups exist. Only bindings to Knowledge Bases that the current user has read access to will be returned.
Parameters
|
Parameter |
Description |
Available since |
|
groupId |
The identifier of the group for which to return the binding. Optional; by default, all bindings to any groups are returned. |
Examples
JS
PHP
BX24.js
try
{
const response = await $b24.callMethod(
'landing.site.getGroupBindings',
{
groupId: 174
}
);
const result = response.getData().result;
console.info(result);
}
catch( error )
{
console.error(error);
}
try {
$response = $b24Service
->core
->call(
'landing.site.getGroupBindings',
[
'groupId' => 174,
]
);
$result = $response
->getResponseData()
->getResult();
if ($result->error()) {
error_log($result->error());
echo 'Error: ' . $result->error();
} else {
echo 'Success: ' . print_r($result->data(), true);
}
} catch (Throwable $e) {
error_log($e->getMessage());
echo 'Error getting group bindings: ' . $e->getMessage();
}
BX24.callMethod(
'landing.site.getGroupBindings',
{
groupId: 174
},
function(result)
{
if(result.error())
{
console.error(result.error());
}
else
{
console.info(result.data());
}
}
);
How to Use Examples in Documentation
Copied