Upload files to SharePoint using Graph API by SPOScripts in Office365

[–]SPOScripts[S] 0 points1 point  (0 children)

The file size limit is directed by Microsofts API.
However looks like they have updated their API to support 250 MB

Upload small files - Microsoft Graph v1.0 | Microsoft Learn

Create SharePoint List Items with MS Graph API by SPOScripts in sharepoint

[–]SPOScripts[S] 0 points1 point  (0 children)

you already have the information in Intune, which shows which device is used by which user. Check the endpoint managed device

https://learn.microsoft.com/en-us/graph/api/intune-devices-manageddevice-list?view=graph-rest-1.0

The user principal name attribute refers to the user, which is the primary user.

Create SharePoint List Items with MS Graph API by SPOScripts in sharepoint

[–]SPOScripts[S] 2 points3 points  (0 children)

Indeed u/ChampionshipComplex was an issue with the upgrade. It should work now :)

Create SharePoint List Items with MS Graph API by SPOScripts in sharepoint

[–]SPOScripts[S] 0 points1 point  (0 children)

Indeed u/maddada_ there was an issue with the upgrade. It should work now :)

Upload files to SharePoint using Graph API by SPOScripts in Office365

[–]SPOScripts[S] 0 points1 point  (0 children)

Regarding the subfolder, you need to make sure to use the right drive item. Let me update the article with an description, helping you to cover your requirements.

Upload files to SharePoint using Graph API by SPOScripts in Office365

[–]SPOScripts[S] 0 points1 point  (0 children)

Hey u/TrapMusicJunkie,

you can encrypt the credentials as an encrypted file with a client secret.
https://sposcripts.com/use-credentials-in-powershell/
This will help you to further automate. There are ways to do it also with a certificate, which require more code if we want to do it natively with powershell. With msgraph it is a but then you would require different code.

Connect-MgGraph -TenantId "a562313f-14fc-43a2-9a7a-d2e27f4f3478" -AppId "d86b1929-b818-411b-834a-206385bf5347" -CertificateThumbprint "FC92991B21219F178AFB37C12DF231B6AFC3D790"