access_controller
access_controller ¶
Dataset access control using the relationship system.
DomoDatasetAccessController ¶
DomoDatasetAccessController(auth: DomoAuth, parent)
Bases: DomoAccessRelationshipController
Access controller for Domo datasets.
Source code in src/crew_dcs/classes/DomoDataset/access_controller.py
65 66 67 68 | |
add_owners
async
¶
add_owners(
domo_users: list[Any] | None = None,
domo_groups: list[Any] | None = None,
user_ids: list[str | int] | None = None,
group_ids: list[str | int] | None = None,
is_send_email: bool = False,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> bool
Add owners to the dataset.
Source code in src/crew_dcs/classes/DomoDataset/access_controller.py
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 | |
create_relationship
async
¶
create_relationship(
target_entity_id: str,
target_entity_type: EntityType,
relationship_type: RelationshipType,
**kwargs
) -> bool
Create an access relationship for the dataset.
Source code in src/crew_dcs/classes/DomoDataset/access_controller.py
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | |
get_accesslist
async
¶
get_accesslist(
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> list[Relationship]
Get access list for the dataset as relationships.
Source code in src/crew_dcs/classes/DomoDataset/access_controller.py
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | |
get_direct_relationships
async
¶
get_direct_relationships() -> list[Relationship]
Get direct relationships for the dataset.
Source code in src/crew_dcs/classes/DomoDataset/access_controller.py
74 75 76 | |
get_owners
async
¶
get_owners(
*, context: RouteContext | None = None, **context_kwargs
) -> list[Relationship]
Get owner relationships for the dataset.
Source code in src/crew_dcs/classes/DomoDataset/access_controller.py
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | |
remove_owners
async
¶
remove_owners(
domo_users: list[Any] | None = None,
domo_groups: list[Any] | None = None,
user_ids: list[str | int] | None = None,
group_ids: list[str | int] | None = None,
**_kwargs
) -> bool
Remove owners from the dataset.
Source code in src/crew_dcs/classes/DomoDataset/access_controller.py
221 222 223 224 225 226 227 228 229 230 231 232 | |
remove_relationship
async
¶
remove_relationship(
target_entity_id: str,
target_entity_type: EntityType,
relationship_type: RelationshipType,
**kwargs
) -> bool
Remove an access relationship for the dataset.
Source code in src/crew_dcs/classes/DomoDataset/access_controller.py
98 99 100 101 102 103 104 105 106 107 108 | |
share
async
¶
share(
domo_users: list[Any] | None = None,
domo_groups: list[Any] | None = None,
user_ids: list[str | int] | None = None,
group_ids: list[str | int] | None = None,
access_level: ShareDataset_AccessLevelEnum = CAN_SHARE,
is_send_email: bool = False,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> bool
Share the dataset with users or groups.
Source code in src/crew_dcs/classes/DomoDataset/access_controller.py
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 | |
ShareDataset_UnsupportedAccessLevel ¶
ShareDataset_UnsupportedAccessLevel(
relationship_type: RelationshipType,
supported: list[str] | None = None,
cls_instance: Any = None,
)
Bases: ClassError
Raised when a caller asks for a dataset access level Domo cannot grant.
Domo's dataset share API has exactly three levels — CO_OWNER, CAN_EDIT and
CAN_SHARE (routes/dataset/sharing.py:ShareDataset_AccessLevelEnum). There
is no read-only dataset share.
Refusing here is deliberate. This mapping used to resolve the read-only
relationship types (and its fallback) UP to CAN_SHARE, so asking for
"viewer" silently granted the recipient the right to re-share the dataset to
anyone. RelationshipType.default is HAS_ACCESS_VIEWER, so the default path
escalated too. Verified live against domo-community on 2026-08-31: a
HAS_ACCESS_VIEWER grant landed as "accessLevel": "CAN_SHARE".
A privilege grant must never be quietly widened to fit the API. Name the
levels the entity actually supports and let the caller choose. See
.agents/guides/access-and-sharing.md.
Source code in src/crew_dcs/classes/DomoDataset/access_controller.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | |