Variable removeUserRoleConst
removeUserRole: (
tenantId: string,
userId: string,
role: string,
userContext?: Record<string, any>,
) => Promise<
| { didUserHaveRole: boolean; status: "OK" }
| { status: "UNKNOWN_ROLE_ERROR" },
> = Wrapper.removeUserRole
Type declaration
- (
tenantId: string,
userId: string,
role: string,
userContext?: Record<string, any>,
): Promise<
| { didUserHaveRole: boolean; status: "OK" }
| { status: "UNKNOWN_ROLE_ERROR" },
> Parameters
- tenantId: string
- userId: string
- role: string
Optional
userContext: Record<string, any>
Returns Promise<
| { didUserHaveRole: boolean; status: "OK" }
| { status: "UNKNOWN_ROLE_ERROR" },
>