Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
From my Power shell I am running the following command and getting the error mentioned below.
Command -
Add-DataGatewayClusterDatasourceUser -GatewayClusterId {cluster_id} -GatewayClusterDatasourceId {datasource Id} -DatasourceUserAccessRight Read -Identifier {AD app object id}
Error -
Add-DataGatewayClusterDatasourceUser: Response status code does not indicate success: 400 (Bad Request)
Request Id: c21f5c3d-5042-4256-9232-bfff3f906b38
Timestamp: 6/8/2024 9:47:26 AM +00:00
ErrorCode: DMTS_UsersNotFoundError
I am using Web as my data source.
Can anyone please help me resolve this issue
Solved! Go to Solution.
@AkashJain 
I guess it will work if you give the object id of the corresponding external application ID. To find the external application object  id of your app registration. Open your app registration from the azure portal and click on the the name of the application next to managed application and there you will find object id.
If the post helps please give a thumbs up
If it solves your issue, please accept it as the solution to help the other members find it more quickly.
Tharun
Hi @AkashJain ,
You can refer this -https://www.dataunlock.com.au/how-to-perform-power-bi-on-prem-data-gateway-management-using-service-principa...
Thanks,
Sai Teja
Thanks for the help @tharunkumarRTK .
I was exploring the ways around and got a very easy and small way to solve this which takes seconds to solve this issue.
The way you are telling is also working.
Hi @AkashJain ,
I am glad you have solved the problem. If you do not mind, could you share with us how you solved it to help more people with similar problems in the future.
Best Regards,
Ada Wang
Hi @AkashJain ,
You can refer this -https://www.dataunlock.com.au/how-to-perform-power-bi-on-prem-data-gateway-management-using-service-principa...
Thanks,
Sai Teja
@AkashJain 
I guess it will work if you give the object id of the corresponding external application ID. To find the external application object  id of your app registration. Open your app registration from the azure portal and click on the the name of the application next to managed application and there you will find object id.
If the post helps please give a thumbs up
If it solves your issue, please accept it as the solution to help the other members find it more quickly.
Tharun
 
					
				
				
			
		
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
