Check Access Permissions v 3.0 tasks.task.access.get

Choose a tool for developing with an AI agent:

  • use Alaio Vibecode to build an app for Bitrix24 from a task description without knowing any programming language. The agent writes the code and deploys the app to a server, with no manual hosting setup
  • use the MCP server to develop a REST API integration in your own project. The agent refers to the official REST documentation

Scope: tasks

Who can execute the method: any user

This method belongs to REST 3.0. The call specifics and response format of the new API version are described in the REST 3.0 overview.

The method tasks.task.access.get returns which actions on a task are available to the user, such as viewing, editing, completing, or delegating.

The method checks the permissions of the user on whose behalf it is called: the webhook owner or the application user. You cannot use this method to check another user's permissions — use the tasks.task.getaccess method with the users parameter instead.

If the user has no access to the task, the method returns false in all fields except automate and admin: these depend on the user's permissions, not on the task.

The method does not check whether the task exists: a nonexistent id does not cause an error.

Method Parameters

Required parameters are marked with *

Name
type

Description

id*
integer

Task identifier.

The task identifier can be obtained when creating a new task or by using the method for getting the task list

Code Examples

How to Use Examples in Documentation

The new API call differs by adding the /api/ segment to the request URL:

https://{installation_address}/rest/api/{user_id}/{webhook_token}/tasks.task.access.get

curl -X POST \
        -H "Content-Type: application/json" \
        -H "Accept: application/json" \
        -d '{"id":8017}' \
        https://**put_your_bitrix24_address**/rest/api/**put_your_user_id_here**/**put_your_webhook_here**/tasks.task.access.get
        
curl -X POST \
        -H "Content-Type: application/json" \
        -H "Accept: application/json" \
        -d '{"id":8017,"auth":"**put_access_token_here**"}' \
        https://**put_your_bitrix24_address**/rest/api/tasks.task.access.get
        
// This snippet is an ES module: top-level await requires type="module" or a bundler.
        // $b24 is an already-initialized SDK instance (see the SDK "Get started" guide).
        import { Text } from '@bitrix24/b24jssdk'
        import type { B24Frame } from '@bitrix24/b24jssdk'
        
        declare const $b24: B24Frame
        
        // Shape of the payload returned in result (match the "response handling" section of the page)
        type TaskAccessResult = {
          read: boolean
          watch: boolean
          mute: boolean
          createSubtask: boolean
          createResult: boolean
          edit: boolean
          remove: boolean
          complete: boolean
          approve: boolean
          disapprove: boolean
          start: boolean
          take: boolean
          delegate: boolean
          defer: boolean
          renew: boolean
          deadline: boolean
          datePlan: boolean
          changeDirector: boolean
          changeResponsible: boolean
          changeAccomplices: boolean
          pause: boolean
          timeTracking: boolean
          mark: boolean
          changeStatus: boolean
          reminder: boolean
          addAuditors: boolean
          elapsedTime: boolean
          favorite: boolean
          checklistAdd: boolean
          checklistEdit: boolean
          checklistSave: boolean
          checklistToggle: boolean
          automate: boolean
          resultEdit: boolean
          completeResult: boolean
          removeResult: boolean
          resultRead: boolean
          admin: boolean
          copy: boolean
          saveAsTemplate: boolean
          attachFile: boolean
          detachFile: boolean
          detachParent: boolean
          createGanttDependence: boolean
          sort: boolean
        }
        
        try {
          const response = await $b24.actions.v3.call.make<TaskAccessResult>({
            method: 'tasks.task.access.get',
            params: {
              id: 8017,
            },
            requestId: Text.getUuidRfc4122()
          })
        
          // The payload is available only on a successful response
          if (!response.isSuccess) {
            console.error(response.getErrorMessages().join('; '))
          } else {
            const result = response.getData()!.result
            console.info('Task access rights — edit:', result.edit, 'complete:', result.complete, 'remove:', result.remove)
          }
        } catch (error) {
          // Thrown on transport or SDK failures (AjaxError, SdkError, etc.)
          console.error(error)
        }
        
<!-- Load the SDK (UMD build); it is exposed as the global B24Js -->
        <script src="https://unpkg.com/@bitrix24/b24jssdk@1/dist/umd/index.min.js"></script>
        <script>
          async function getTaskAccess() {
            try {
              // Initialize the SDK inside a Bitrix24 frame
              const $b24 = await B24Js.initializeB24Frame()
        
              const response = await $b24.actions.v3.call.make({
                method: 'tasks.task.access.get',
                params: {
                  id: 8017,
                },
                requestId: B24Js.Text.getUuidRfc4122()
              })
        
              // The payload is available only on a successful response
              if (!response.isSuccess) {
                console.error(response.getErrorMessages().join('; '))
                return
              }
        
              const result = response.getData().result
              console.info('Task access rights — edit:', result.edit, 'complete:', result.complete, 'remove:', result.remove)
            } catch (error) {
              // Thrown on transport or SDK failures (AjaxError, SdkError, etc.)
              console.error(error)
            }
          }
        
          document.addEventListener('DOMContentLoaded', getTaskAccess)
        </script>
        
from b24pysdk.errors import BitrixAPIError, BitrixSDKException
        
        try:
            bitrix_response = client.tasks.task.access.get(
                bitrix_id=8017,
            ).response
            result = bitrix_response.result
            print(result)
        except BitrixAPIError as error:
            print(
                "Bitrix API error",
                f"error: {error.error}",
                f"error_description: {error.error_description}",
                sep="\n",
            )
        except BitrixSDKException as error:
            print(f"Bitrix SDK error: {error.message}")
        except Exception as error:
            print(f"Unexpected error: {error}")
        

SDKs do not yet support the /rest/api/ address in calls. Use direct HTTP requests, for example, via curl or fetch.

try {
            $response = $b24Service
                ->core
                ->call(
                    'tasks.task.access.get',
                    [
                        'id' => 8017,
                    ]
                );
        
            $result = $response
                ->getResponseData()
                ->getResult();
        
            echo 'Success: ' . print_r($result, true);
        
        } catch (Throwable $e) {
            error_log($e->getMessage());
            echo 'Error: ' . $e->getMessage();
        }
        

SDKs do not yet support the /rest/api/ address in calls. Use direct HTTP requests, for example, via curl or fetch.

BX24.callMethod(
            'tasks.task.access.get',
            {
                id: 8017,
            },
            function(result){
                console.info(result.data());
                console.log(result);
            }
        );
        

SDKs do not yet support the /rest/api/ address in calls. Use direct HTTP requests, for example, via curl or fetch.

require_once('crest.php');
        
        $result = CRest::call(
            'tasks.task.access.get',
            [
                'id' => 8017,
            ]
        );
        
        echo '<PRE>';
        print_r($result);
        echo '</PRE>';
        
// client and ctx are already created — see the Go SDK section
        res, err := client.Core().Call(ctx, "tasks.task.access.get", b24.Params{
        	"id": 8017,
        }, b24.WithIdempotent())
        if err != nil {
        	return fmt.Errorf("tasks.task.access.get: %w", err)
        }
        
        var item struct {
        	Read          bool `json:"read"`
        	Watch         bool `json:"watch"`
        	Mute          bool `json:"mute"`
        	CreateSubtask bool `json:"createSubtask"`
        	CreateResult  bool `json:"createResult"`
        	Edit          bool `json:"edit"`
        }
        if err := json.Unmarshal(res.Result, &item); err != nil {
        	return fmt.Errorf("parse response: %w", err)
        }
        fmt.Println(item.Read, item.Watch)
        

Response Handling

HTTP Status: 200

{
            "result": {
                "read": true,
                "watch": true,
                "mute": true,
                "createSubtask": true,
                "createResult": true,
                "edit": true,
                "remove": true,
                "complete": true,
                "approve": false,
                "disapprove": false,
                "start": false,
                "take": false,
                "delegate": true,
                "defer": false,
                "renew": false,
                "deadline": true,
                "datePlan": true,
                "changeDirector": false,
                "changeResponsible": true,
                "changeAccomplices": true,
                "pause": false,
                "timeTracking": false,
                "mark": true,
                "changeStatus": true,
                "reminder": true,
                "addAuditors": true,
                "elapsedTime": true,
                "favorite": true,
                "checklistAdd": true,
                "checklistEdit": true,
                "checklistSave": true,
                "checklistToggle": true,
                "automate": true,
                "resultEdit": false,
                "completeResult": true,
                "removeResult": false,
                "resultRead": false,
                "admin": true,
                "copy": true,
                "saveAsTemplate": true,
                "attachFile": true,
                "detachFile": true,
                "detachParent": true,
                "createGanttDependence": true,
                "sort": false
            },
            "time": {
                "start": 1764849882,
                "finish": 1764849882.731575,
                "duration": 0.7315750122070312,
                "processing": 0,
                "date_start": "2025-12-04T15:04:42+01:00",
                "date_finish": "2025-12-04T15:04:42+01:00",
                "operating_reset_at": 1764850482,
                "operating": 0
            }
        }
        

Returned Data

Name
type

Description

result
object

Permissions of the current user for the task (detailed description)

time
time

Information about the request execution time

Object result

Each field is a permission for an action: true means allowed, false means denied. The exceptions are changeDirector, resultEdit, removeResult, and resultRead: the method always returns false in them.

Name
type

Description

read
boolean

View the task

watch
boolean

Follow the task as an observer. The value matches read

mute
boolean

Mute notifications for the task. The value matches read

createSubtask
boolean

Create subtasks

createResult
boolean

Add a task result. The value matches read

edit
boolean

Edit the task

remove
boolean

Delete the task

complete
boolean

Complete the task

approve
boolean

Accept work on a task awaiting control

disapprove
boolean

Return a task awaiting control for revision

start
boolean

Start working on the task

take
boolean

Take a task from a flow with self-assignment

delegate
boolean

Delegate the task

defer
boolean

Defer the task

renew
boolean

Resume a completed or deferred task

deadline
boolean

Change the deadline

datePlan
boolean

Change the planned start and end dates

changeDirector
boolean

Change the creator. The method always returns false, even if the permission is granted

changeResponsible
boolean

Change the responsible person

changeAccomplices
boolean

Change participants

pause
boolean

Pause work on the task

timeTracking
boolean

Start time tracking for the task

mark
boolean

Rate the task

changeStatus
boolean

Change the task status

reminder
boolean

Create reminders

addAuditors
boolean

Add observers

elapsedTime
boolean

Add time spent

favorite
boolean

Add the task to favorites. The value matches read

checklistAdd
boolean

Add checklist items

checklistEdit
boolean

Edit checklist items

checklistSave
boolean

Save the checklist

checklistToggle
boolean

Mark checklist items as completed

automate
boolean

Configure task automation rules. A user permission that does not depend on the task

resultEdit
boolean

Edit the task result. The method always returns false, even if the permission is granted

completeResult
boolean

Complete a task that requires a result

removeResult
boolean

Delete the task result. The method always returns false, even if the permission is granted

resultRead
boolean

Read the task result. The method always returns false, even if the permission is granted

admin
boolean

Manage access permissions for tasks. A user permission that does not depend on the task

copy
boolean

Copy the task

saveAsTemplate
boolean

Save the task as a template

attachFile
boolean

Attach files to the task

detachFile
boolean

Detach files from the task

detachParent
boolean

Unlink the task from its parent task

createGanttDependence
boolean

Create task dependencies on the Gantt chart

sort
boolean

Change the task order in a group. Can be true only for a task in a group

Error Handling

HTTP Status: 400

{
            "error": {
                "code": "BITRIX_REST_V3_EXCEPTION_VALIDATION_REQUESTVALIDATIONEXCEPTION",
                "message": "Error during request object validation",
                "validation": [
                    {
                        "message": "Required field `id` is missing",
                        "field": "id"
                    }
                ]
            }
        }
        

Name
type

Description

error.code
string

String error code. Use it to identify the type of exception

error.message
string

Text description of the error

error.validation
array

Array with error details. Present only in data validation errors BITRIX_REST_V3_EXCEPTION_VALIDATION_REQUESTVALIDATIONEXCEPTION

error.validation[].field
string

Name of the field where the validation error occurred

error.validation[].message
string

Description of the error related to the specified field

Possible Error Codes

Request Validation Errors

Error Code: BITRIX_REST_V3_EXCEPTION_VALIDATION_REQUESTVALIDATIONEXCEPTION

Field

Error Description

How to Fix

id

Required field id is missing

Add id to the request body

id

Field id requires data type int for this request

Ensure the value is a number, not a string

Statuses and System Error Codes

HTTP Status: 4xx, 5xx

The errors described below are returned by the REST API itself, not by the logic of a specific method. They can arrive in response to any method.

Status

Code
Error Message

Description

500

INTERNAL_SERVER_ERROR
Internal server error

An internal server error has occurred. Retry the call, and if the error persists, contact the server administrator or Bitrix24 technical support

500

ERROR_UNEXPECTED_ANSWER
Server returned an unexpected response

The server returned an unexpected response. Retry the call, and if the error persists, contact the server administrator or Bitrix24 technical support

503

QUERY_LIMIT_EXCEEDED
Too many requests

The request intensity limit has been exceeded

429

OPERATION_TIME_LIMIT
Method is blocked due to operation time limit

The method is blocked because the request resource intensity limit has been exceeded. The block is lifted automatically once the accumulated execution time of the method no longer exceeds the limit

401

NO_AUTH_FOUND
Wrong authorization data

The request contains no authorization data: neither an access token nor a webhook code was passed

401

INVALID_REQUEST
Https required

Methods are called over the HTTPS protocol only

401

OVERLOAD_LIMIT
REST API is blocked due to overload

The REST API is blocked due to overload. This is a manual individual block. To have it lifted, contact Bitrix24 technical support

401

ACCESS_DENIED
REST is available only on commercial plans

REST API access is not active for this account. In Bitrix24 Cloud, check the current plan or trial status: Vibe+ plans include REST API access, while Essentials plans do not. A webhook receives a different error message — REST is available only by subscription

401

INVALID_CREDENTIALS
Invalid request credentials

No active webhook with the specified user identifier and secret code was found

404

ERROR_METHOD_NOT_FOUND
Method not found!

No method with this name was found. The name is misspelled, the method does not exist in the REST API, or it is unavailable without the required scope

401

insufficient_scope
The request requires higher privileges than provided by the webhook token

The request requires broader permissions than the token has: for a webhook these are the permissions granted to it, for an application it is the scope. For an application, the error message ends with provided by the access token

401

expired_token
The access token provided has expired

The access token has expired

401

user_access_error
The user does not have access to the application

The application is installed, but the Bitrix24 administrator has granted access to it only to specific users

403

PORTAL_DELETED
Portal was deleted

The public part of the site is closed. To open it on an on-premise installation, disable the "Temporary closure of the public part of the site" option. Path to the setting: Desktop > Settings > Product Settings > Module Settings > Main Module > Temporary closure of the public part of the site

Continue Learning