How to Enable/Disable Ribbon button in CustomAction Element base on user’s rights? Lyudmila Zharova SharePoint Developer at MRM Worlwide lzharova077@gmail.com.

Slides:



Advertisements
Similar presentations
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 16 Introduction to Ajax.
Advertisements

Site Collection, Sites and Sub-sites
Microsoft Office 2007 Web Feature Sharing Access Data.
Microsoft Office SharePoint Portal Server 2007 Introduction to InfoPath Forms Services Daryl L. Rudolph.
A really fairly simple guide to: mobile browser-based application development (part 1) Chris Greenhalgh G54UBI / Chris Greenhalgh
Microsoft Office 2010 Office 2010 and Windows 7: Essential Concepts and Skills Mark Worden Instructor Use your spacebar or down arrow key to advance slides.
LH SharePoint SIG - Custom Actions. Custom Actions A custom action represents a Server ribbon, menu, or link customization that a user can see. Custom.
 Updating organization profile  Approving new members  Adding new members  Changing positions and permissions  Adding positions  Customizing organization’s.
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
Professor Joe Perret Pierce College Transition to Microsoft Office 2007.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Customizing Outlook. Forms Window in which you enter and view information in Outlook Outlook Form Designer The environment in which you create and customize.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2006 Microsoft Corporation.
1 of 4 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
SP Attach for Outlook and SharePoint A better way to send files SP Attach works with Outlook 2007 and above and SharePoint 2010, 2013.
Microsoft Office Word 2013 Expert Microsoft Office Word 2013 Expert Courseware # 3251 Lesson 4: Working with Forms.
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
Microsoft Dynamics.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Microsoft Office 2010 Office 2010 and Windows 7: Essential Concepts and Skills.
SOFTEX Contract [Gist of Contract]Demo
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
An Object-Oriented Approach to Programming Logic and Design
Connecting to USF Network for Web Site SSH Secure Shell is the FTP program you will use to download your http files onto the USF server. To get the SSH.
Office 2013 and Windows 8: Essential Concepts and Skills
Virtual techdays INDIA │ Nov 2010 Developing Office Biz Application using WPF on Windows 7 Sarang Datye │ Sr. Consultant, Microsoft Sridhar Poduri.
Microsoft Excel 2007 © Wiley Publishing All Rights Reserved. The L Line The Express Line to Learning L Line.
Quick Reference notes  Part of the Microsoft® Office Fluent user interface, the ribbon is the rectangular region across the top of the document window.
The SharePoint Shepherd’s Course for End Users Based on the book by Robert L. Bogue Copyright 2011 AvailTek LLC All Rights Reserved.
Upgrading Projects to Visual Studio 2010 Upgrading Projects to SharePoint 2010 Integrating with SharePoint 2010.
Agenda 45 7.SharePoint Changes 8.Items & Lists 9.Files & Libraries 10.SharePoint & Office 11.Help 12.Wrap Up.
Microsoft Office 2010 is the newest version of Microsoft Office, offering features that provide users with better functionality and easier ways to work.
How to create a SharePoint site MICROSOFT OFFICE SHAREPOINT DESIGNER.
Microsoft ® Official Course Developing a Publishing Site for Web Content Microsoft SharePoint 2013 SharePoint Practice.
AJAX. Overview of Ajax Ajax is not an API or a programming language Ajax aims to provide more responsive web applications In normal request/response HTTP.
How to Use Your Committee Workspace. Click Here AFPMB Homepage.
UNDERSTANDING YOUR OPTIONS FOR CLIENT-SIDE DEVELOPMENT IN OFFICE 365 Mark Rackley
Microsoft PowerPoint 2013 Lesson 2.02 – Presentation Basics.
UX03 – Building & Branding SharePoint Sites Using new Web Content Management Capabilities Andrew Connell MVP Office SharePoint Server
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
1 PDMLink Application - User Features & Functions Module 6: Search Capabilities.
Texas Skyward User Group Conference Helpful Hints Jennifer Speulda.
Converting SharePoint on- premise Apps to Office 365 Jos Auker-Woor M377.
Emdeon Office Batch Management Services This document provides detailed information on Batch Import Services and other Batch features.
WESS Application System PKI Login Registration Process
Module 6 Practical part: Creation of X-Road dataservice and client based on WSDL (.NET platform) Name Date.
Visual Basic 2010 How to Program
Getting Started with Application Software
Weebly Elements, Continued
Developing GIS WebParts in SharePoint
z/Ware 2.0 Technical Overview
About SharePoint Server 2007 My Sites
LMEvents SharePoint Portal How-to Guide
Modern UI Extensions with the SharePoint Framework
Modern UI Extensions with the SharePoint Framework
Microsoft Office Illustrated
Office 2010 and Windows 7: Essential Concepts and Skills
THE BASICS PIONEER PLACE
WESS Application System PKI Login Registration Process
07 | Workflows Chris Johnson | SharePoint Guru
Workforce Mobile (Android)
Exploring the Power of EPDM Tasks - Working with and Developing Tasks in EPDM By: Marc Young XLM Solutions
SharePoint 2010 – SharePoint 101
SharePoint Foundation 2010
WESS Application System PKI Login Registration Process
SharePoint Foundation 2010
WESS Application System PKI Login Registration Process
An Introduction to JavaScript
WESS Application System PKI Login Registration Process
Presentation transcript:

How to Enable/Disable Ribbon button in CustomAction Element base on user’s rights? Lyudmila Zharova SharePoint Developer at MRM Worlwide lzharova077@gmail.com 12/15/2010

Access an External List using Office Add-ins SharePoint 2010 Extensibility Projects can be downloaded from the MSDN Code Gallery here: http://code.msdn.microsoft.com/vsixforsp and use a new SharePoint Ribbon Project Template Andrew Connel explained how to: -Handle Events in the SharePoint Ribbon http://www.andrewconnell.com/blog/archive/2010/10/11/handling-events-in-the-sharepoint-ribbon.aspx - Asynchronously check if a command is available in the SharePoint Ribbon: http://www.andrewconnell.com/blog/archive/2010/10/14/asynchronously-checking-if-a -command-is-available-in-the-sharepoint.aspx To verify if the user has permission on the item level you can use EsmaScript: get_effectiveBasePermissions().has(SP.PermissionKind.editListItems)) You can hide the Ribbon from Anonymus users and allow only logged in users with the right permissions to see it by placing SPSecurityTrimmedControl on your custom master page. Client object model focuses on the most relevant APIs for client-side development. But limiting the size of the client libraries reduces the amount of time that is required to download the libraries in the Silverlight and ECMAScript contexts. Http throttling is a new feature in SharePoint 2010 that allows the server to “back off” of serving requests when it is too busy. Requests generated prior to the server entering into the throttling mode will be completed. Access an External List using Office Add-ins • Chose Word 2010 Document Add-in • Chose the document • Added a WPF User Control • Added references • Added using statements • Created a class for data-binding • Instantiated a ClientContext • Retrieved List data

Permissions=” ManageLists”> Open and check-out your master page, find where your ribbon control starts or look for <WebPartPages:SPWebPartManager id=”m” runat=”Server”/> Place this control below <Sharepoint:SPSecurityTrimmedControl runat=”server” Permissions=” ManageLists”> Find where your ribbon control ends or look for <div id=s4-workspace> and place the closing control above it </SharePoint:SPSecurityTrimmedControl> Save, check-in the master page and publish it to see the changes. Set the correct permissions in the Permissions attribute

How to Enable/Disable Ribbon button in CustomAction Element base on user’s rights? … Rights = " ApproveItems " </CustomAction> “Rights” attribute is optional ApproveItems - Approve a minor version of a list item or document. According to msdn article http://msdn.microsoft.com/en-us/library/ms460194.aspx it specifies a set of rights that the user must have for the link to be visible, for example, "ApproveItems, ViewListItems, ManageAlerts". If it is not specified, the action always appears in the list of actions. To specify multiple rights, separate the values by using commas. The set of rights are grouped logically according to AND logic, which means that a user must have all the specified rights to see an action. To see all SPBasePermissions Enumeration follow this link: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbasepermissions.aspx