Forum Discussion

cscountry's avatar
cscountry
Copper Contributor
Aug 28, 2024

OneDrive API and the standard Attribute enum

I need to iterate over many user's OneDrives and set the PINNED attribute ("Always keep on this device"):  FILE_ATTRIBUTE_PINNED 0x00080000.

In looking at drive/driveitem via the Graph API I can get a reference to a user's OneDrive and a file, but I don't see the "real" attributes.  

Are these not exposed by the Graph API?  If not, is there another way to automate this?

No RepliesBe the first to reply

Resources