Start a new script that can be used to examine a Role's ancestry

This commit is contained in:
Jeff Bradberry 2024-05-03 15:11:33 -04:00
parent 5cfeeb3e87
commit 85fc81aab1

View File

@ -0,0 +1,14 @@
from collections import defaultdict
import os
import sys
from django.contrib.contenttypes.models import ContentType
from awx.main.fields import ImplicitRoleField
from awx.main.models.rbac import Role
r_id = int(os.environ.get('role'))
r = Role.objects.get(id=r_id)
print(r)