Queries
teamBuiltInRoles(Experimental) — Redo’s built-in roles and their permissions. The same for every store.teamNewUserDefaultRole(Experimental) — The role a user gets when they join the store.teamRole(Experimental) — A custom role by id. Null when the store has no such role.teamRoles(Experimental) — List the store’s custom roles, ordered by name.
Mutations
teamBuiltInRoleMembersSet(Experimental) — Set which team members hold a built-in role. Its permissions can’t be changed.teamNewUserDefaultRoleSet(Experimental) — Set the role a user gets when they join the store.teamRoleCreate(Experimental) — Create a custom role.teamRoleDelete(Experimental) — Delete a custom role and take it off every user. True if deleted, false if none matched.teamRoleUpdate(Experimental) — Change a custom role. Null when the store has no such role. Built-in roles can’t be changed.
Objects
TeamBuiltInRole(Experimental) — A role Redo defines, with the permissions it grants.TeamNewUserDefaultRole(Experimental) — The role a user gets when they join the store. At most one of builtInRole and customRole is set; when neither is, new users get USER.TeamRole(Experimental) — A role the store defined (“Custom roles” in the app). Built-in roles are listed by teamBuiltInRoles.
Input objects
TeamNewUserDefaultRoleSetInput(Experimental) — Set at most one. Leave both out to clear it, so new users get USER.TeamRoleCreateInput(Experimental) —TeamRoleUpdateInput(Experimental) —
Enums
BuiltInTeamRole(Experimental) — A role Redo defines. Its permissions are fixed; ADMIN can do everything.TeamPermission(Experimental) — Something a role lets its users do in the Redo app. A user can do everything any of their roles allows.TeamRoleColor(Experimental) — The color the app shows a role’s badge in.