Hello Maxim,
thanks for your answer.
That's what i did but i still have the problem.
Error from web.api.log :
2017-07-05 14:06:07,105 ERROR [Threadpool worker] ASC.Api - method error:
https://172.18.0.4/api/2.0/files/file/27/share - Server error
System.InvalidOperationException: Vous n'avez pas l'autorisation suffisante pour effectuer l'opération ---> System.Security.SecurityException: Vous n'avez pas l'autorisation suffisante pour effectuer l'opération
at ASC.Web.Files.Utils.FileSharing.SetAceObject (System.Collections.Generic.List`1[T] aceWrappers, ASC.Files.Core.FileEntry entry, System.Boolean notify, System.String message) [0x00038] in <5801b783fa1547fc8cbf30488176ca2a>:0
at ASC.Web.Files.Services.WCFService.FileStorageServiceController.SetAceObject (ASC.Web.Files.Services.WCFService.AceCollection aceCollection, System.Boolean notify) [0x00097] in <5801b783fa1547fc8cbf30488176ca2a>:0
--- End of inner exception stack trace ---
at ASC.Web.Files.Services.WCFService.FileStorageServiceController.SetAceObject (ASC.Web.Files.Services.WCFService.AceCollection aceCollection, System.Boolean notify) [0x000e8] in <5801b783fa1547fc8cbf30488176ca2a>:0
at ASC.Api.Documents.DocumentsApi.SetFileSecurityInfo (System.String fileId, System.Collections.Generic.IEnumerable`1[T] share, System.Boolean notify, System.String sharingMessage) [0x0006f] in <aefa31ff7c5e4bc0b8bf728da8dd062e>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0