Skip to main content
Module

x/appwrite/mod.ts>Role

[READ-ONLY] Official Appwrite Deno SDK 🦕
Latest
class Role
Re-export
import { Role } from "https://deno.land/x/appwrite@10.0.0/mod.ts";

Helper class to generate role strings for Permission.

Static Methods

any(): string

Grants access to anyone.

This includes authenticated and unauthenticated users.

guests(): string

Grants access to any guest user without a session.

Authenticated users don't have access to this role.

label(name: string): string

Grants access to a user with the specified label.

member(id: string): string

Grants access to a specific member of a team.

When the member is removed from the team, they will no longer have access.

team(id: string, role?: string): string

Grants access to a team by team ID.

You can optionally pass a role for role to target team members with the specified role.

user(id: string, status?: string): string

Grants access to a specific user by user ID.

You can optionally pass verified or unverified for status to target specific types of users.

users(status?: string): string

Grants access to any authenticated or anonymous user.

You can optionally pass verified or unverified for status to target specific types of users.