The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
in function getAccessToken which identity does it take to authenticate
Solved! Go to Solution.
Hi @SravyaNeela
Welcome to the Microsoft Fabric Forum. Also ,Thank you @nilendraFabric for the contribution.
In Microsoft Fabric, getAccessToken authenticates using the identity associated with the execution context. For internal Fabric resources such as OneLake, this is typically the Workspace Managed Identity. When accessing external services or APIs, the token is obtained using the identity configured in the resource connection, which could be a user identity, managed identity, or service principal.
In notebooks, interactive runs use the signed-in user's identity, whereas scheduled runs or pipeline executions use the Run As identity configured in the job or pipeline settings.This ensures secure and context-aware access to both internal and external resources within the Fabric environment.
If this information helps resolve your issue, kindly consider marking this response as the Accepted Solution, as it may assist other community members facing similar challenges.
Thank you for being part of the Microsoft Fabric Community.
Hi @SravyaNeela ,
The getAccessToken function typically uses the identity of the user or service principal that is executing the request. In the context of Microsoft Fabric or Azure, this could be:
To determine exactly which identity is used, check the authentication context or logs of the service executing the function.
Hope this helps!
Hi @SravyaNeela
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hi @SravyaNeela ,
The getAccessToken function typically uses the identity of the user or service principal that is executing the request. In the context of Microsoft Fabric or Azure, this could be:
To determine exactly which identity is used, check the authentication context or logs of the service executing the function.
Hope this helps!
Hi @SravyaNeela
Welcome to the Microsoft Fabric Forum. Also ,Thank you @nilendraFabric for the contribution.
In Microsoft Fabric, getAccessToken authenticates using the identity associated with the execution context. For internal Fabric resources such as OneLake, this is typically the Workspace Managed Identity. When accessing external services or APIs, the token is obtained using the identity configured in the resource connection, which could be a user identity, managed identity, or service principal.
In notebooks, interactive runs use the signed-in user's identity, whereas scheduled runs or pipeline executions use the Run As identity configured in the job or pipeline settings.This ensures secure and context-aware access to both internal and external resources within the Fabric environment.
If this information helps resolve your issue, kindly consider marking this response as the Accepted Solution, as it may assist other community members facing similar challenges.
Thank you for being part of the Microsoft Fabric Community.
Hi @SravyaNeela
getAccessToken authenticates using the identity configured for the resource connection-most commonly the workspace identity for workspace resources, or the user/service principal identity for direct API access
User | Count |
---|---|
21 | |
18 | |
6 | |
2 | |
2 |
User | Count |
---|---|
50 | |
49 | |
18 | |
6 | |
5 |