How can i get the current user that loaded a file from a sharepoint library?
When I load a file from a doc library on sharepoint, Word prompts me a window to type my UserName and Password to connect to the sharepoint site.
How can I get this username on the add-in or on the server side?
I've beem trying to use on the server side using:
SPUser user = SPContext.Current.Web.CurrentUser;
I tought that was going to solve my problems, but it seems to get always the same user, it doesn't matter which one I log-in on the MSWord prompt or on the Sharepoint Site for some reason.
Does anyone know what might be the solution?