Can you count the letter d in:
Q: Sharing a document in sharepoint 2013 on premise I used to work with office365 but i now work on a pure sharepoint 2013 on premise environment. Things are quite different. So now im looking into ways to share a document from a document library with 


*

*groups (pure internals)

*externals (not known to sharepoint and any directory service).

*contacts  (who already live in a trusted lightweight directory service)

*group of mixed contacts with internals.


*the contacts are derived from a different app and to sharepoint they are trusted users.
Ideally i would like to right click a document and share it to a specific user.
or else Email it to a user (popup fill in email address) 
But i dont want:


*

*share an entire document library, or an entire site.


I wonder how to achieve it.
Currently im thinking of maybe adding a workflow, so people could type an email addres, or type a distributionlist / group.
But then i need a button per document library list row to be able to send it.
Or some popup construction. Are there recommended ways to do this ?.

A: For external users, you may want to look into ACS, which you can configure to use Microsoft Accounts, Facebook, and a few others. An example reference can be found at https://blogs.technet.microsoft.com/meacoex/2013/12/25/authenticate-your-sharepoint-website-users-with-facebook/. This in and of itself is a deep topic you will want to do research on.
For groups, you can simply add the users to an Active Directory Security Group and apply permission to SharePoint as appropriate using the People Picker to find the group.
For users who reside in LDAP (e.g. AD LDS), you can use Forms-based Authentication, or potentially SAML if your SAML provider can federate with your LDAP implementation. For an FBA configuration with specifically AD LDS, though easily adaptable to other LDAP systems, see https://thesharepointfarm.com/sharepoint-and-active-directory-lightweight-directory-services/.
Note that objects from Active Directory need a SID in order to be added to SharePoint security objects, therefor you cannot use Contacts or Distribution Groups in SharePoint for security purposes.
As these are quite in depth topics, if youre having issues with any specific one during implementation, Id recommend creating individual questions here for them. This is why Ive provided you with general links instead of specific step-by-step guidance.

user
The text includes 80 "d"s in total.
assistant