'Share' functionality in SHarePoint 2013 - Prevent access to files
Hello
I have a client that has just moved to SP2013 and they used the send document link as hyperlink in email functionality of SharePoint 2010 regularly. THis was good for them because if the link was sent to a user that did not have access to a document
then they couldn't open it.
I would like to do the same thing in the 2013 environment and I have been making use of the 'Share' functionality. This does not seem to be working as if the Share functionality is used then the users specified get access to the document regardless
of their permissions.
Is there a way to stop users from opening documents if they are accidentally sent a link to a document they don't have access to?? it seems the 'Share' functionality overwrites it.
There are a few ways to do it:
http://www.sharemuch.com/2013/07/25/how-to-disable-sharesynchfollow-buttons-on-the-sharepoint-2013-ribbon/
http://www.sharepointdiary.com/2013/12/sharepoint-2013-share-functionality-faqs.html
http://removesharefollow.codeplex.com/
http://www.eliostruyf.com/hiding-the-social-actions-follow-share-from-the-document-libraries-in-sharepoint-2013/
Disabling Access Requests should disable the Share feature.
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.
Similar Messages
-
How to Implement custom share functionality in SharePoint 2013 document Lib programmatically?
Hi,
I have created custom action for Share functionality in document library.
On Share action i'm showing Model pop up with Share form with addition functionality.
I am developing custom share functionality because there is some addition functionality related to this.
How to Implement custom share functionality in SharePoint 2013 document Lib pro-grammatically?
Regards,
- SiddhehswarHi Siddhehswar:
I would suggest that you use the
Ribbon. Because this is a flexible way for SharePoint. In my project experience, I always suggest my customers to use it. In the feature, if my customers have customization about permission then i can accomplish this as soon
as possible. Simple put, I utilize this perfect mechanism to resolve our complex project requirement. Maybe we customize Upload/ Edit/ Modify/ Barcode/ Send mail etc... For example:
We customize <Edit> Ribbon. As shown below.
When user click <Edit Item>, the system will
render customized pop up window.
Will -
Display Like and Share functionality in SharePoint 2013 search result
Hello Experts,
I dont Know whether i am asking a good question or bad one . but i am not very much expert in search.
I have to display No of Likes , Share functionality in SharePoint Search Results.
i know little basic about how display templates works. i want to implement these like and share functionality as actions in Item_common_hoverpanel_Actions template. show that i can see in preview.
please if any body can help me . i will be highly thankful to you.
MukeshThis will be difficult. The number of likes has a managed property called LikesCount but it is not populated by the search crawler. So your JavaScript will have to read the "LikesCount" field of the corresponding list item. That would be a
lot of code to execute in the item display template just to display the number of likes. You could have a button that displayed a callout that would get the information and display it. The Sharing could be done via JavaScript in your item display template
using a REST call. You can see an example of code to do that here:
http://sharepointfieldnotes.blogspot.com/2014/09/sharing-documents-with-sharepoint-rest.html?showComment=1428595550241#c3227376854590814312
Just remember the user must have permission to share these documents, so your code will have to handle this.
Blog | SharePoint Field Notes Dev Tools |
SPFastDeploy | SPRemoteAPIExplorer -
How to create Ticket Booking Functionality in SharePoint 2013 App?
We have created a Ticket Booking site in Asp.Net.
In that in Ticket Booking page user can book the ticket and the booked seats will be stored in the database. If there are any booked seats it will be disabled for the user and from other user can book tickets.
Took reference from this site:
http://techbrij.com/online-ticket-booking-system-asp-net-sql-server
Now I want to do same functionality using SharePoint 2013 App Part with SharePoint Hosted App.
I don't know how to start
Anybody having Idea.
Thanks in Advance.Hi,
According to your post, my understanding is that you want to create a Ticket Booking solution as SharePoint Hosted App.
To build the similar solution in SharePoint, I would suggest you take a look at the links below about how to create ShrePoint Hosted App for a quick start:
Create Host App:
How to: Create a basic SharePoint-hosted app
Create App Part:
How to: Create app parts to install with your app for SharePoint
Then for the data storage, here is a documentation will provide more information:
App data storage:
Data storage options in apps for SharePoint
For the responsive UI, HTML plus JavaScript would be OK.
Feel free to reply if there are still any questions.
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Open SharePoint 2013 Search Results (EML files) In The Client Application
Hi, I have a problem about using sharepoint 2013 search for EML files:
When i click on the search result link *.eml, the browser open for the email file, i can only view the content of the EML file, but actually i want to see the full info of it like using an email client application outlook express including From:,To:,Date:,Subject:,ect.
How can i click on the search result link to open an email client application to view the result?
Thanks a lot.Hi ,
According to your description, my understanding is that you want to open SharePoint 2013 Search Results (EML files) in the Client Application.
For your issue, you can follow the steps as the blog’s:
http://www.quercussolutions.com/blog/index.php/opening-eml-file-types-in-outlook-from-sharepoint-2010/
Best Regards,
Eric
Eric Tao
TechNet Community Support -
How to work JQuery and content editor webpart functionality in sharepoint 2013?
Hi all,
I have a requirement to display the list data in share-point page by using JQuery and content editor web-part. could you please any one suggest the process to display the list data using JQuery and ContentEditorWebpart.
Thanks in advance.
Thanks,
phani kumar
Phani kumarHi,
From your description, my understanding is that you want to show a list data in a page using jQuery and Content Query Web Part.
You could use SharePoint REST API to accomplish your requirement, please refer to this code below:
<div id="listData">
</div>
<script src="https://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script><script type="text/javascript">
$(document).ready(function(){
//replace your list title
$.ajax({
url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('customlist03')/items",
type: "GET",
headers: {"accept": "application/json;odata=verbose"},
success: function (data) {
if (data.d.results) {
var obj = data.d.results;
for(var i = 0; i < obj.length; i++)
$("#listData").append("<div>title "+obj[i].Title+"</div>");
error: function (xhr) {
alert(xhr.status + ': ' + xhr.statusText);
</script>
The screenshot below is my result:
Please refer to these articles:
Working with lists and list items with REST
https://msdn.microsoft.com/en-us/library/office/dn292552.aspx
SharePoint 2013 – CRUD on List Items Using REST Services & jQuery
http://www.plusconsulting.com/blog/2013/05/crud-on-list-items-using-rest-services-jquery/
You can also get list data using JavaScript Client Object Model(JSOM), you could refer to this article:
How to: Complete basic operations using JavaScript library code in SharePoint 2013
https://msdn.microsoft.com/en-us/library/office/jj163201.aspx?f=255&MSPPError=-2147217396
Here is a link about how to add code into page via Content Editor Web Part:
http://blogs.msdn.com/b/sharepointdev/archive/2011/04/14/using-the-javascript-object-model-in-a-content-editor-web-part.aspx
Best Regards,
Vincent Han
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Meeting Workspace Functionality in SharePoint 2013
Hi,
Is it possible to rebuild the functionality of meeting workspaces in SharePoint? if so..how.? or how one note can help in achieving this capability?
Please help with ideas...
techieHi,
If you want to enable the meeting workspace template in SharePoint 2013, we can set the
hidden attribute to false in the webtemp.xml file.
Here are some detailed articles for your reference:
How to: Make meeting workspaces available in SharePoint 2013
Enable Meeting Workspaces in SharePoint 2013
Thanks
Best Regards
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Customise the email sent via the "Share" feature in Sharepoint 2013
We have modified a number of the alerts via the alerttemplates.xml file in the 15 hive already.
We want to modify the the email that is generated when a user in Sharepoint 2013 selects "share" on a document. We specifically want to add something to the Subject line of the email - just some text.
Can someone advise what the file name and location and the name of the AlertTemplate Name that we need to modify?
Cheers,
ClarkyHi Clarky,
According to your description, my understanding is that you want to modify the subject of the email when sharing a document with a user.
When sharing a document with a user, that is granting permission to the user on the document.
This email template is located in C:\program files\common files\Microsoft shared\web server extensions\15\Resources\core.en-US.resx, you can open this file in notepad to edit it. But it’s not suggested to change the file, before you modify it, take
a backup.
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
Get link (Document Share) API in SharePoint 2013
Hi there,
We need a way to identify the automation or API for getting the anonymous link to a document in SharePoint 2013. We have a system where we query a given SharePoint site and show the user the document libraries and based on the document library selection,
we are showing the documents in the library. We have to give the share -> Get Link option to be automated through API, so they use that link to share with external users. But, as far as I know, I don't find any API to generate that link SharePoint is doing
today. Any ideas?
-Praveen.At this time, there are not any official documents including sharing documents with external users by using calling APIs.
However, about the application of the APIs in SharePoint Online, like List and Library APIs and REST API, you may check detailed information in
SharePoint Online service description which including all of the features available in SharePoint Online.
For the requirements mentioned above, you are welcome to
submit feedback to our product team.
Many features of current programs have been designed and upgraded based on customers’ feedback. We always appreciate customers who can take the time to give us their constructive opinions.
http://community.office365.com/en-us/f/154/t/190212.aspx -
SharePoint 2013 Configuration Access denied
Hi While configuring the SharePoint 2013, getting the following error.
System.InvalidOperationException: An error occurred while getting information about the user sp_farm at server <ADserver>: Access is denied
at Microsoft.SharePoint.Win32.SPNetApi32.NetUserGetInfo1(String server, String name)
sp_farm is a Domain User, and local admin, for SQL server this account have sysadmin rights, still having the issue please help.Basically SharePoint is trying to get information about this service account and access is denied. This is because you may be logged in on server and running Products and Configuration Wizard as a local user that does not have access to the AD OU to verify
the SP_Farm domain account.
Log out from sever and Log in again with "SP_Farm" user and re-launch the SharePoint Products and Configuration Wizard. Specify the SP_Farm account to connect to the SQL Database.Before you run the config wizard , please log in to SQL
Management Studio and remove the partially created farm database SharePoint_Config or use a different name the second time.
Thanks
Ganesh Jat [My Blog |
LinkedIn | Twitter ]
Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful. -
Share the same SharePoint 2013 development environment for multiple developers
Hi,
We need our developers(more than 2) to use the same ''SharePoint 2013 development server' for different application developments. Their work should not affect each others(like application pool reset etc.). How this can be achieved ?
Thanks,,Hi Kalai,
Please check the following similar post suggested that each developer could deploy his dll file to each separated web application bin folder by setting Visual Studio property "Assembly Deployment Target" to "Web Application".
http://social.technet.microsoft.com/Forums/sharepoint/en-US/7ee3858f-243c-4f43-a72d-3483ad1506f6/multiple-developers-debugging-on-different-web-apps-on-single-server?forum=sharepointgeneral
Thanks
Daniel Yang
TechNet Community Support -
Is it possible to publish reports to SharePoint if SQL Server 2012 reporting service is on native mode?
How to do it?
I have SharePoint 2013 and SQL Server 2012. I have created cube and reports with its data tools. This is single server environment.
This is what I have done:
A) I can successfully see from SQL Server installation tool that "Reporting Service-SharePoint" and "Reporting Services Add-in for SharePoint Products" are checked.
B) I don't see Reporting Services under the Manage Service Application of the SharePoint Central Admin.
c) When I choose report from reporting service project and I click deploy, it asks Reporting Services Login, but it does not accept admin logins. Server path should be valid.
I got idea from following instruction that I should register and start the Reporting Services SharePoint service
http://msdn.microsoft.com/en-us/library/jj219068.aspx
C) I tried to run command Install-SPRSService, but it was not recognized cmdlet command.
D) I see from Reporting Service Configuration Manager that Reporting Server Mode is Native. Report Service Status is Started.
Kenny_IHi Kenny_I,
Since the release of SQL Server 2012, Reporting Services SharePoint Integrated mode has been changed from a Windows Service to be a SharePoint Shared Service. In this way, Reporting Services Configuration Manager no longer supports Reporting Services SharePoint
mode, and all the configurations of SharePoint mode is completed using SharePoint Central Administration.
In SSRS 2008 R2 or lower version, only one report server (either native mode or SharePoint integrated mode) can be active at one time in one SSRS instance. In SSRS 2012, the report server that runs in SharePoint integrated mode and the report server that
runs in Native mode work separately at the same time in one SSRS 2012 instance. So, in this issue, you don’t need to care about the report server that runs in native mode when you work with the report server that runs in SharePoint mode.
First, please install SQL Server 2012 SP1 which introduces more BI features.
For the issue you encounter when running the commands to register the Reporting Services SharePoint Service, it may occur if you run the commands in the Windows Powershell instead of the SharePoint Management Shell. Please launch the SharePoint Management
Shell by clicking Start-> All Promgrams -> Microsoft SharePoint 2013 Products -> SharePoint 2013 Management Shell. Then, please continue the steps in the following document or blog to create a Reporting Services Service Application:
Install Reporting Services SharePoint Mode for SharePoint 2013
Installing and configuring SQL Reporting services on SharePoint 2013
After a SSRS Service Application is created properly, to deploy the project to the SharePoint integrated mode report server, please see the project property settings in the following document:
Project Property Pages Dialog Box
Regards,
Mike Yin
If you have any feedback on our support, please click
here
Mike Yin
TechNet Community Support -
Sharepoint 2013 - WSS content LOG file very very big
Hi there.
Sharepoint 2013 with latest updates.
WSS CONTENT database size is cca 110GB, LOG FILE is 90GB.
Even if we did FULL backup of databes that does not decrease LOG file size.
Any hints how to lower the size of LOG data file?
With best regards
bostjancHi Bostjan,
I wonder whether the issue can be resolved by shrinking log file.
Shrinking data files recovers space by moving pages of data from the end of the file to unoccupied space closer to the front of the file. When enough free space is created at the end of the file, data pages at end of the file can deallocated and returned
to the file system.
Here is the reference for Shrink a File in SQL 2012 for your convenience:
https://technet.microsoft.com/en-us/library/ms190757(v=sql.110).aspx
Regards,
Rebecca Tu
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Override "Email a Page link" in ribbon button functionality in SharePoint 2013
Hi,
I want to override "Email a Page link" ribbon button functionality on the ribbon control.
<CustomAction Id="Ribbon.WikiPageTab.Share.EmailPageLink"
Location="CommandUI.Ribbon"
Title="Custom Email this page">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.WikiPageTab.Share.EmailPageLink">
<Group
Id="Ribbon.WikiPageTab.Share"
Sequence="30"
Command="ShareGroup"
Description=""
Title="$Resources:core,cui_GrpShare;"
Image32by32Popup="/_layouts/15/$Resources:core,Language;/images/formatmap32x32.png?rev=23" Image32by32PopupTop="-137" Image32by32PopupLeft="-103"
Template="Ribbon.Templates.Flexible2"
>
<Controls Id="Ribbon.WikiPageTab.Share.Controls">
<Button
Id="Ribbon.WikiPageTab.Share.EmailPageLink"
Sequence="10"
Command="CustomEmailPageUrl"
Image16by16="/_layouts/15/$Resources:core,Language;/images/formatmap16x16.png?rev=23" Image16by16Top="-115" Image16by16Left="-19"
Image32by32="/_layouts/15/$Resources:core,Language;/images/formatmap32x32.png?rev=23" Image32by32Top="-137" Image32by32Left="-511"
LabelText="$Resources:core,cui_ButEmailLink;"
ToolTipTitle="$Resources:core,cui_ButEmailLink;"
ToolTipDescription="$Resources:core,cui_STT_ButEmailLinkPage;"
TemplateAlias="o1"
/>
</Controls>
</Group>
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler Command="CustomEmailPageUrl" CommandAction="javascript:alert('Hello, world');" />
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
Any help would be appreciated.
Rajasekar A.CHi,
According to your post, my understanding is that you wanted to override the “E-mail a Link” button on the Ribbon.
I had created a simple demo to override the “E-mail a Link” button on the Ribbon, you can have a look at it.
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction Id="Ribbon.Library.Actions.OverrideEmailLinkButton" Location="CommandUI.Ribbon" RegistrationId="101" RegistrationType="List" Title="Display the UniqueId for the list item.">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.Library.Share.EmailLibraryLink">
<Button Id="Ribbon.Library.Share.EmailLibraryLink.ReplacementButton" Command="ReplacementButtonCommand" Image16by16="http://s10.postimage.org/lhar0oijp/U16.png" Image32by32="http://s17.postimage.org/trf3y2ui3/U32.png" LabelText="Replaced Button" TemplateAlias="o2" />
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler Command="ReplacementButtonCommand" CommandAction="javascript:alert('This button has been replaced.');" />
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
</Elements>
More reference:http://msdn.microsoft.com/en-us/library/office/ff407619(v=office.14).aspx
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support -
Can not find any doc by search function in SharePoint 2013
Dear all,
recently,i create a list and upload some documents ,but when i want to find one doc by the search function in the page ,i get noting .i don't why.
any suggestion?Hi Alber,
Please do as the followings:
Make sure that you have created and configured Search Services Application, you can refer to the link:http://technet.microsoft.com/en-us/library/gg502597.aspx
Make sure that Search Host Controller Service , Search Query and Site Settings Service and SharePoint Server Search are started
Open the library, click on Library Settings->Advanced settings, on the Seach section, select Yes.
Please use the completed name of the document to search, compare the result.
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support
Maybe you are looking for
-
Firefox no longer connects to internet on my mac, and windows machines, after v18. I've tried several solutions from Mozilla support and nothing works. Firefox can't even connect to Mozilla for updates. Firefox just sits on the default search page an
-
JSP newbie (from PHP)
Hello! I want to re-write my php code into servlets or jsp. so, how do I do an include directive to include headers and footers such as in php with include("header.php") ? jason
-
IWork 09 Dinner Party Template
Bought iWork 09 yesterday and was building a Dinner party list with the understanding that after filling in my recipes, the template would total all my ingridients in the shopping list. But it doesn't do that. Is that how it is designed or am I missi
-
Assigned investment order in Asset Master
Hi Guys We have to do budgeting to restrict the asset purchase over a particular value We are doing investment management for the same "THE ISSUE IS WHEN IAM DOING THE ME21N PURCHASE ORDER, THE SYSTEM IS NOT BLOCKING EVENTHOUGH THE VALUE EXCEEDS THE
-
I'm trying to reverse a DV clip made with QT that I imported into iMovie 6. When I select the clip in the clip viewer or timeline and then select the "advanced" pull down menu there is no option for reverse clip. The only available options are 1) Ext