Skip to main content

Snowflake Documentation

Configuring custom user groups

In case, you are using Login mode as LDAP or Azure Active Directory (AAD) and you want to override the LDAP/AAD implementation of groups with custom groups:

  1. Create a shell script as below to mock custom user groups:

    case "$1" in
    'user1')
            echo "uid=1051601153(user1) gid=1051600513(domain users) groups=0001(auto-test-group01),0002(auto-test-group02),0003(auto-test-group03),0004(auto-test-group04),0005(auto-test-group05),0006(auto-test-group06),0007(auto-test-group07),0008(auto-test-group08),0009(auto-test-group09)" ;;
    'user2')
            echo "uid=1051601153(user2) gid=1051600513(domain users) groups=0001(auto-test-group01),0003(auto-test-group07)";;
    'user3')
            echo "uid=1051601153(user3) gid=1051600513(domain users) groups=0001(auto-test-group01),0002(auto-test-group02),0003(auto-test-group03),0004(auto-test-group04),0005(auto-test-group05),0006(auto-test-group06),0007(auto-test-group07),0008(auto-test-group08),0009(auto-test-group09)" ;;
    'user4')
            echo "uid=1051601153(user4) gid=1051600513(domain users) groups=0001(auto-test-group02),0002(auto-test-group07)" ;;
    'user5')
            echo "uid=1051601153(user5) gid=1051600513(domain users) groups=0001(auto-test-group03),0002(auto-test-group07)" ;;
    'user6')
            echo "uid=1051601153(user6) gid=1051600513(domain users) groups=0001(auto-test-group_auto)";;
    'user7')
            echo "uid=1051601153(user7) gid=1051600513(domain users) groups=0001(auto-test-group04),0002(auto-test-group07)" ;;
    'user8')
            echo "uid=1051601153(user8) gid=1051600513(domain users) groups=0001(auto-test-group05),0002(auto-test-group07)" ;;
    'user9')
            echo "uid=1051601153(user9) gid=1051600513(domain users) groups=0001(auto-test-group06),0002(auto-test-group07)" ;;
    esac
  2. Stop Unravel.

    <Unravel installation directory>/unravel/manager stop
    
  3. From the installation directory, run the following command to set the RBAC configurations using the template script.

    <Unravel installation directory>/unravel/manager config rbac script </path/to/rbac/tag command/script>
  4. Apply the changes.

    <Unravel installation directory>/unravel/manager config apply
    
  5. Start Unravel

    <Unravel installation directory>/unravel/manager start