Use these together to give each person only the product and repository access they need.
Prerequisites
- You must be an organization administrator to manage Access Control.
- The organization must have more than one member. For a single-member organization, CodeAnt hides the Access Control page.
- Add users through Settings → Team Management or, where available, Directory Sync before creating assignments.
- Teams are optional. Team-scoped assignments are currently available in the UI for GitHub organizations; every supported provider can use repository-scoped assignments.
Preset roles
CodeAnt creates three preset roles when Access Control is initialized. Preset roles cannot be edited or deleted.
You can create custom roles for any access model that the presets do not cover.
Available permissions
Product view access
Product permissions control which areas a user can see. These permissions are read-only.Settings access
Settings permissions support Read and Write. Write access includes read access.
The Admin permission grants full access to every product and settings action.
Settings permissions refine access for users who already have organization-administrator access to Settings. They do not promote a Member from Team Management to an organization administrator.
Create a custom role
- Open the Roles tab.
- Click New role.
- Enter a descriptive name and description, such as
Security Viewer. - Expand View access, CI/CD access, or Settings access.
- Choose the permission level for each area:
- None grants no access.
- Read allows viewing.
- Write allows viewing and changing settings where write is supported.
- To grant everything, enable Admin instead of selecting individual permissions.
- Click Create role.
Assign access
- Open the Assignments tab.
- Click Assign role.
- Select one or more users.
- Choose a scope:
- Repository applies the role to one repository.
- Team applies the role to every repository in that team and its descendant teams.
- Select a role and click Add.
- Add more scope-to-role entries if needed.
- Click Grant access.
How effective access is resolved
CodeAnt resolves access separately for each repository.- Matching explicit assignments take precedence. If the user has repository or team assignments that cover the repository, CodeAnt combines those roles. When the same permission appears more than once, Write wins over Read.
- The default role covers repositories without a matching assignment. A scoped assignment does not remove the default role from unrelated repositories.
- Organization administrators keep full access when they have no explicit assignment. CodeAnt recognizes the organization administrator/owner from Team Management and, for GitHub, from provider ownership.
- an assignment to a parent team covers repositories in its child teams;
- a repository can match multiple teams, and all matching role permissions are combined; and
- an all repositories team covers current and future repositories.
403:
Configure default access
The Default access for new members selector controls the baseline role used when no explicit assignment covers a repository. CodeAnt initially uses Codeant Member so existing members retain read access to the primary product areas. Choose a custom role when every new member should start with a different baseline. Then use explicit assignments to override that baseline for specific repositories or teams.Practical use cases
Security team across many repositories
- Create a
Security Viewerrole with Code Security and Cloud Security read access. - Create a Security team that includes all repositories.
- Assign
Security Viewerto the security engineers on that team.
Contractor on one repository
- Create a
PR Reviewerrole with AI Code Review read access. - Assign the contractor that role on only the required repository.
- Keep the organization’s default role narrow enough that it does not grant unwanted access on other repositories.
Platform lead across nested teams
- Create a role containing the product areas the lead needs.
- Organize service teams under a Platform parent team.
- Assign the role once on Platform.
Scoped CI token
Use Codeant CI/CD or a custom role when creating an API token, then limit the token to the repositories used by that pipeline. Token access cannot exceed the access of its creator.Maintain and audit access
- Search assignments by user, role, team, or repository.
- Remove obsolete entries when a person changes teams.
- Delete unused custom roles only after removing their assignments.
- Review changes in Settings → Audit Logs.
- Re-check assignments before deleting or restructuring a team.