Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join 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.

Reply
AkashJain
Regular Visitor

getting error while setting user as service principle user while using commandlet for Power Bi

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

2 ACCEPTED SOLUTIONS
tharunkumarRTK
Super User
Super User

@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.

 

Screenshot 2024-06-08 at 3.32.17 PM.png

 


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

 

View solution in original post

SaiTejaTalasila
Super User
Super User
4 REPLIES 4
AkashJain
Regular Visitor

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.

Anonymous
Not applicable

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

SaiTejaTalasila
Super User
Super User

tharunkumarRTK
Super User
Super User

@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.

 

Screenshot 2024-06-08 at 3.32.17 PM.png

 


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

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.