Apex
CloudFiles Client
Update Permissions
introduction this flow action can be used to set permissions of a file/folder in external storage like sharepoint, google drive etc to update permission in external storages global static void updatepermissions( list\<types permissioninput> permissioninputs, string library, string runas ) parameters permissioninputs list of types permissioninput docid\ qzyndsj0zx77mqb5m2nhw library type of library example sharepoint you can get this value from content library docid\ wtj62wux2a6hgfwvpm4ij runas email id of the user on whom behalf the function should run if you want to run the action as automation user, supply integrationuser return type none example list\<cldfs types permissioninput> permissioninputs = new list\<cldfs types permissioninput>{ new cldfs types permissioninput('grant', 'read', '01pljoyloawjbfgbse7fhk5akosimdio6h', 'file', 'b!zfa15hrs1uy9ph3vw5tfjahfp1lrylzavdwlnhyyq8sa l6ejxb tjbmyuxi1qfl', new list\<string> {'testuser\@gmail com'}) }; cldfs client updatepermissions( permissioninputs, 'sharepoint', 'integrationuser' )