from cerbos.sdk.model import Principal from cerbos.sdk.model import Resource michelle = Principal( id="Michelle", roles={"user"}, attr={ "type": "human", "apps": ["Abacus"], "tenants": { "*": { "account_id": "*", "attachments": { "Abacus_contract_admin": { "role": "Abacus_contract_admin" } } } } } ) account_1 = Resource( id="account1", kind="account", attr={ "account_id": "1" }, ) action_view = "view"