Skip to content

Commit 10dc41f

Browse files
GOV-667: Add comment for clarity
1 parent 603fa11 commit 10dc41f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

pyatlan/client/common/transport.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
def build_policy_search_request(
2626
policy_name: str, persona_qualified_name: str
2727
) -> IndexSearchRequest:
28-
"""Build an IndexSearchRequest to find an existing AuthPolicy by name and persona."""
28+
"""
29+
Build an IndexSearchRequest to find an existing AuthPolicy by name and persona.
30+
Using persona GUID directly returns associated assets, not policies.
31+
Policies require a hierarchical (prefix) match to be correctly retrieved.
32+
"""
2933
query = Bool(
3034
filter=[
3135
Term(field="__state", value="ACTIVE"),

0 commit comments

Comments
 (0)