Using the Graph API - e.g. to export configuration

%3CLINGO-SUB%20id%3D%22lingo-sub-376792%22%20slang%3D%22en-US%22%3EUsing%20the%20Graph%20API%20-%20e.g.%20to%20export%20configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-376792%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20everyone%2C%3C%2FP%3E%3CP%3Ei'm%20new%20to%20this%20topic%20(use%20of%20the%20graph%20API).%3CBR%20%2F%3EI%20just%20played%20around%20a%20little%20bit%20with%20the%20Graph%20Explorer%2C%20e.g.%20reading%20out%20current%20config%20of%20devices%20or%20device%20configuration%20profiles.%3C%2FP%3E%3CP%3ENow%20i%20would%20like%20to%20go%20one%20step%20further.%3C%2FP%3E%3CP%3EA%20possible%20example%20would%20be%20a%20Script%20(Powershell%3F)%20that%20runs%26nbsp%3Bvarious%20GET%20queries%20once%20a%20day%20to%20take%20%22backup%22.%20(Write%20into%20an%20.XML%20File%20or%20sth.%20like%20that.%3C%2FP%3E%3CP%3EHow%20should%20i%20manage%20that%3F%3CBR%20%2F%3EAny%20suggestion%20or%20help%20is%20kindly%20appreciated.%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3EGreetings%2C%3CBR%20%2F%3EPatrick.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-376792%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPI%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20Graph%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-390550%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20the%20Graph%20API%20-%20e.g.%20to%20export%20configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-390550%22%20slang%3D%22en-US%22%3E%3CP%3E%40Deleted%26nbsp%3B%3C%2FP%3E%3CP%3EYes%2C%20it%20is%20possible%20and%20you%20need%20to%20use%20PnP%20Powershell%20module%20to%20execute%20the%20graph%20API%2C%20please%20refer%20the%20below%20link%20for%20sample%20Powershell%20script%20with%20Microsoft%20graph%20API.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fjijitechnologies.com%2Fblogs%2Fexport-microsoft-teams-details-with-members%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fjijitechnologies.com%2Fblogs%2Fexport-microsoft-teams-details-with-members%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-469757%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20the%20Graph%20API%20-%20e.g.%20to%20export%20configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-469757%22%20slang%3D%22en-US%22%3E%3CP%3EJust%20a%20short%20response%2C%20because%20of%20a%20new%20Techcommunity%20Account.%20%3A)%3C%2Fimg%3E%20%5BIgnore%20me%5D%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-469768%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20the%20Graph%20API%20-%20e.g.%20to%20export%20configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-469768%22%20slang%3D%22en-US%22%3E%3CP%3EBecause%20of%20a%20new%20techcommunity%20account%2C%20this%20is%20just%20a%20short%20response%20to%20follow%20up%20the%20thread.%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Deleted
Not applicable

Hi everyone,

i'm new to this topic (use of the graph API).
I just played around a little bit with the Graph Explorer, e.g. reading out current config of devices or device configuration profiles.

Now i would like to go one step further.

A possible example would be a Script (Powershell?) that runs various GET queries once a day to take "backup". (Write into an .XML File or sth. like that.

How should i manage that?
Any suggestion or help is kindly appreciated. :)

Greetings,
Patrick.

2 Replies
Highlighted

@Deleted 

Yes, it is possible and you need to use PnP Powershell module to execute the graph API, please refer the below link for sample Powershell script with Microsoft graph API. 

https://jijitechnologies.com/blogs/export-microsoft-teams-details-with-members

Highlighted

Because of a new techcommunity account, this is just a short response to follow up the thread. :)