sonet_group.feature.access
Description
Verifies whether the current user has permission for social network group operations by calling the CSocNetFeaturesPerms::CurrentUserCanPerformOperation() function
Request:
https://mydomain.bitrix24.com/rest/sonet_group.feature.access.json?auth=52423d4a5f19f5f964f9b4e96a925cfa&GROUP_ID=1&FEATURE=blog&OPERATION=write_post
Response:
{"result":true}
Function parameters
Parameter | Description |
---|---|
GROUP_ID | Social network group ID. |
FEATURE | Functionality symbol code. |
OPERATION | Operation symbol code. |
Returns true when the user has permission for operation and returns false when the user has no permission. Returns an error message when the parameters are invalid.
Note: operations and function codes can be found in the method description CanPerformOperation.
Example
// Get list of groups of the current user BX24.callMethod('sonet_group.feature.access', { 'GROUP_ID': 1, 'FEATURE': 'blog', 'OPERATION': 'write_post' });
© «Bitrix24», 2001-2024