-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Markus Cozowicz
committed
Jun 17, 2024
1 parent
7f7dad2
commit 09e22af
Showing
40 changed files
with
190 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,6 @@ def evaluate_dax_impersonation( | |
The DAX query. | ||
user_name : str | ||
The user name (i.e. [email protected]). | ||
Defaults to None which resolves to no user impersonation. | ||
workspace : str, default=None | ||
The Fabric workspace name. | ||
Defaults to None which resolves to the workspace of the attached lakehouse | ||
|
@@ -49,13 +48,10 @@ def evaluate_dax_impersonation( | |
|
||
dataset_id = resolve_dataset_id(dataset=dataset, workspace=workspace) | ||
|
||
if user_name is None: | ||
request_body = {"queries": [{"query": dax_query}]} | ||
else: | ||
request_body = { | ||
"queries": [{"query": dax_query}], | ||
"impersonatedUserName": user_name, | ||
} | ||
request_body = { | ||
"queries": [{"query": dax_query}], | ||
"impersonatedUserName": user_name | ||
} | ||
|
||
client = fabric.PowerBIRestClient() | ||
response = client.post( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.