Loading...
Loading...
Deploy and manage Fusion Roles V2 configuration using the fusion-roles-cli (froles). USE FOR: deploy role config from a JSON file, create roles/bindings/assignments, export current role state, inspect role assignments. DO NOT USE FOR: database provisioning, application code changes, Azure AD group management outside role bindings, or Roles V1 management.
npx skill4agent add equinor/fusion-skills fusion-roles-clifusion-infra-clifrolesdotnet tool install --global \
--add-source "https://statoil-proview.pkgs.visualstudio.com/Fusion%20-%20Packages/_packaging/Fusion-Public/nuget/v3/index.json" \
Fusion.Roles.Clifroles --updateDefaultAzureCredentialaz login-t <token>$schemaroles-config.json{
"$schema": "https://rolesv2.api.fusion.equinor.com/public/schemas/role-config.schema.json",
"accessRoles": [
{
"systemIdentifier": "my-service",
"name": "MyService.Project.Read",
"description": "Read access to project resources"
}
],
"roles": [
{
"name": "project-viewer",
"displayName": "Project Viewer",
"accessRoleMappings": [
{ "accessRoleIdentifier": "MyService.Project.Read" }
]
}
]
}froles create -e ci --file roles-config.json --dry-run# CI
froles create -e ci --file roles-config.json
# QA
froles create -e fqa --file roles-config.json
# Production
froles create -e fprd --file roles-config.jsoncreatefroles export my-service -e ci -o current-state.jsoncreatecreate| Resource | Natural key | Behaviour |
|---|---|---|
| Scope types | | Create if missing; patch |
| Access roles | | Create if missing; patch if changed |
| Roles / claimable roles | | Create if missing; patch if changed; access role mappings fully reconciled |
| Bindings | | Patch all fields; diff shows role/group additions and removals |
| Role assignments | | Create if missing; skip if exists |
| Key | Purpose |
|---|---|
| Continuous integration |
| QA / pre-production |
| Production |
| Training environment |
froles --help
froles create --help-t <token>delete role-assignments