Retrieving PowerBI Reports and their users using Powershell

%3CLINGO-SUB%20id%3D%22lingo-sub-762825%22%20slang%3D%22en-US%22%3ERetrieving%20PowerBI%20Reports%20and%20their%20users%20using%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-762825%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20retrieve%20all%20the%20PowerBI%20reports%20and%20their%20users%20of%20my%20organization%20using%20Powershell.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20running%20the%20following%20command%2C%26nbsp%3B%20%3CSTRONG%3EGET%20%3CA%20href%3D%22https%3A%2F%2Fapp.powerbi.com%2Fv1.0%2Fmyorg%2Fadmin%2Fgroups%3F%2524top%3D50%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fapp.powerbi.com%2Fv1.0%2Fmyorg%2Fadmin%2Fgroups%3F%2524top%3D50%3C%2FA%3E%2C%20%3C%2FSTRONG%3Ei%20get%20the%20following%20error.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EGET%20%3A%20The%20term%20'GET'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet%2C%20function%2C%20script%20file%2C%20or%20operable%20program.%20Check%20the%20spelling%20of%20the%20name%2C%20or%20if%20a%20path%20was%20included%2C%20verify%20that%20the%20path%20is%20correct%20and%20try%20again.%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3EAt%20line%3A1%20char%3A1%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%2B%20GET%20%3CA%20href%3D%22https%3A%2F%2Fapi.powerbi.com%2Fv1.0%2Fmyorg%2Fadmin%2Fgroups%3F%2524top%3D50%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fapi.powerbi.com%2Fv1.0%2Fmyorg%2Fadmin%2Fgroups%3F%2524top%3D50%3C%2FA%3E%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%2B%20~~~%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%2B%20CategoryInfo%20%3A%20ObjectNotFound%3A%20(GET%3AString)%20%5B%5D%2C%20CommandNotFoundException%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%2B%20FullyQualifiedErrorId%20%3A%20CommandNotFoundException%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20someone%20please%20help%20me%20get%20this%20resolved%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-762825%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPower%20BI%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-764478%22%20slang%3D%22en-US%22%3ERe%3A%20Retrieving%20PowerBI%20Reports%20and%20their%20users%20using%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-764478%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F378348%22%20target%3D%22_blank%22%3E%40Nayan1593%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERefer%20the%20below%20link%20it%20will%20help%20to%20get%20%3CSPAN%3Eall%20the%20PowerBI%20reports%20using%20Powershell.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fpowerbi.microsoft.com%2Fen-us%2Fblog%2Fannouncing-apis-and-powershell-cmdlets-for-power-bi-administrators%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fpowerbi.microsoft.com%2Fen-us%2Fblog%2Fannouncing-apis-and-powershell-cmdlets-for-power-bi-administrators%2F%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Deleted
Not applicable

I am trying to retrieve all the PowerBI reports and their users of my organization using Powershell.

 

On running the following command,  GET https://app.powerbi.com/v1.0/myorg/admin/groups?%24top=50, i get the following error.

 

GET : The term 'GET' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ GET https://api.powerbi.com/v1.0/myorg/admin/groups?%24top=50
+ ~~~
+ CategoryInfo : ObjectNotFound: (GET:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

 

Can someone please help me get this resolved ?

1 Reply

@Deleted 

 

Refer the below link it will help to get all the PowerBI reports using Powershell.

 

https://powerbi.microsoft.com/en-us/blog/announcing-apis-and-powershell-cmdlets-for-power-bi-administrators/