Function reference
Start with the JavaScript client reference for setup, methods, results and errors.
Groups
Section titled “Groups”Browse the shared, RBAC, OpenFGA and Cedar APIs.
Privileges
Section titled “Privileges”See Privileges.
Shared functions
Section titled “Shared functions”See Shared functions.
current_subject_id
Section titled “current_subject_id”See current_subject_id.
current_subject_type
Section titled “current_subject_type”See current_subject_type.
delete_subject
Section titled “delete_subject”See delete_subject.
RBAC functions
Section titled “RBAC functions”See RBAC functions.
rbac_create_role
Section titled “rbac_create_role”See rbac_create_role.
rbac_drop_role
Section titled “rbac_drop_role”See rbac_drop_role.
rbac_assign_role
Section titled “rbac_assign_role”See rbac_assign_role.
rbac_unassign_role
Section titled “rbac_unassign_role”See rbac_unassign_role.
rbac_user_permissions
Section titled “rbac_user_permissions”rbac_users_with_role
Section titled “rbac_users_with_role”See rbac_users_with_role.
FGA functions
Section titled “FGA functions”See FGA functions.
fga_write_authorization_model
Section titled “fga_write_authorization_model”See fga_write_authorization_model.
fga_read_authorization_model
Section titled “fga_read_authorization_model”See fga_read_authorization_model.
fga_read_authorization_models
Section titled “fga_read_authorization_models”See fga_read_authorization_models.
fga_delete_store
Section titled “fga_delete_store”See fga_delete_store.
fga_write
Section titled “fga_write”See fga_write.
fga_write_tuple
Section titled “fga_write_tuple”See fga_write_tuple.
fga_delete_tuple
Section titled “fga_delete_tuple”See fga_delete_tuple.
fga_read
Section titled “fga_read”See fga_read.
fga_check
Section titled “fga_check”See fga_check.
fga_list_objects
Section titled “fga_list_objects”See fga_list_objects.
fga_list_users
Section titled “fga_list_users”See fga_list_users.
RLS helpers
Section titled “RLS helpers”See RBAC current-subject helpers and OpenFGA current-subject helpers.
rbac_has_permission
Section titled “rbac_has_permission”See rbac_has_permission.
rbac_has_role
Section titled “rbac_has_role”See rbac_has_role.
rbac_scopes_with_permission
Section titled “rbac_scopes_with_permission”See rbac_scopes_with_permission.
fga_check_current
Section titled “fga_check_current”See fga_check_current.
fga_list_objects_current
Section titled “fga_list_objects_current”fga_list_object_ids_current
Section titled “fga_list_object_ids_current”See fga_list_object_ids_current.
Tables
Section titled “Tables”See Tables.