How can I get the Owner name or email of a file that is shared with me using file id or file preview url.
I am using .Net SDK.
This depends on what kind of sharing you're referring to.
If the file is in a shared folder that you are a member of, you can use the ListFolderMembersAsync and ListFolderMembersContinueAsync methods to get the list of members, and check which one is the owner.
Thanks for quick response.
In my case file has been individually shared with me,
var FileMetaData = await dc_Member.Sharing.GetFileMetadataAsync(SharedFile.Id);
Unfortunately, the OwnerDisplayNames value can't always be fetched, though I don't have more specific information to share on when/why that is the case. I'll send this along to the team to ask to get this better documented though.
Have a question? Our Dropbox Community is here to help you find an answer!
You won’t have to wait too long for a reply, but why not learn more about the Community while you’re here.
Not the right discussion for you? Find out what else our Community has to say about Developer & API Discussions.
Or, search our Help Center for even more.