Friday 18 August 2017

Retrieving Access Request Email from SharePoint Site

The access request feature allows users to request access to site that they do not currently have permission to see. As a site owner, you can configure the feature to send you mail when someone requests access to a site for approval.

use the below code find out the  Access request owner using below JSOM code  


function getAccessRequestOwner() {
    var clientContext = SP.ClientContext.get_current();
    this.oWeb = clientContext.get_web();
    clientContext.load(this.oWeb, 'RequestAccessEmail');

    clientContext.executeQueryAsync(
        Function.createDelegate(this, this.onQuerySucceeded),
        Function.createDelegate(this, this.onQueryFailed)
    );
}

function onQuerySucceeded(sender, args) {
    console.log('RequestAccessEmail: ' + this.oWeb.get_requestAccessEmail());
}
   
function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() +
        '\n' + args.get_stackTrace());
}


//Call function
getAccessRequestOwner();

Monday 14 August 2017

SharePoint Online admin role


To help you administer SharePoint Online, you can assign one or more users to the SharePoint Online admin role. For a little background, here are each of the administrator roles available in SharePoint Online listed in order of the permissions hierarchy:
  • The Global administrator of the Office 365 portal is also a SharePoint Online administrator. When you purchase Office 365, a team site is automatically created, and the Office 365 global admin is included as the primary Site Collection administrator for that site. Keep in mind that you need to assign yourself a SharePoint Online license to access these services or you will receive an “Access Denied” message.
    • The SharePoint Online administrator, designated by the Global administrator, has access to the SharePoint Online admin center and can create and manage site collections, designate site collection administrators, manage user profiles, and more. The SharePoint Online admin also needs a SharePoint Online license. See more about this role’s key tasks below.
      • The Site collection administrator, which can be designated by the SharePoint Online administrator, has permissions to manage a site collection. A site collection can have several administrators, but only one primary administrator. The SharePoint Online administrator can assign permissions to the primary site collection administrator when creating a site collection, and can add more administrators for the site collection afterwards. Site collection administrators do not have access to the SharePoint Online admin center. They need SharePoint Online licenses to manage site collections.
Note: There is a separate administrator role called the Term store administrator, who can add or change terms in the term store (a directory of common terms you want to use across your organization). To learn more, see Assign roles and permissions to manage term sets.
Key tasks of the SharePoint Online administrator
Here are some of the key tasks users can do when they are assigned to the SharePoint Online admin role:

Reference – https://support.office.com/

Differences between SharePoint OnPrem vs SP Online


In this post we are going to explain the difference between SharePoint OnPrem Vs SharePoint Online.
  1.  Basic Differences
    SP On PremisesSP Online
    • The SharePoint server farm is within the corporate network.
    • The IT Support team maintains the SharePoint farm and regularly applies Microsoft patches and updates.
    • On premise, Active directory is used for authentication.
    • Full access to use and customize any SharePoint feature as needed.
    • Availability of Enterprise level services such as BCS, Performance Point, etc.

    • The SharePoint sites reside in the   Microsoft Data Centre (MDC).
    • Microsoft applies the patch regularly.
    • Microsoft’s SLA ensures 99.9%     availability.
    • Microsoft’s global network of data centers provides reduced latency and high network bandwidth.
    • Support for Client Side Object & App model.

  2. Feature Comparisons  – All the basic functionality of SharePoint remains the same, there are a number of significant feature differences between On Premises and Online
    CategoryOn PremisesOnline
    Product FeaturesSupport for enterprise feature, Office web App (OWA) needs to be installedMissing or limited features, pre-configured features
    Infrastructure deployment & maintenanceIT Support Team to deploy/manage farm, latest updates or patches not always deployed.Microsoft manages the environment and ensures all updates and patches are deployed.
    Business Continuity (BC)Dependent on internal capabilities.Microsoft built-in redundancy and failover for data centers, but does not provide end user backups or data recovery.
    Cost InvolvedPurchase/Maintain Hardware, Software licenses etc.Annual subscriptions for Office 365 Plans billed on a per user basis.
    Customization OptionsFull support for server side code and client side code, App usage from OAC and SASFull Support- Client Side, Limited Support-Server side, can use Apps from OAC or SAS
    Compliance StandardDependent on internal capabilities.Verified by third party authors
    Information SecurityDependent on internal capabilities.Information in MDS meets industry-specific security standards
    Storage needsExpensive storage devices, Site Collection -More than 100GB, Scalable Storage SizeCheap storage cost, Site Collection- up to 100Gb, Maximum content in single tenant -O365 plan based
    DevelopmentFull trust solution can be deployed- Features in farm solutions can have scope as wide as the site collection, web application, or whole farm Public facing website with much of customization is possible Custom “Managed Path” allowed More control can be delegated to power usersFull trust solution and Sandbox cannot be deployed- Allowed More control cannot be delegated to power users and maxim privilege level is Site Collection level.

  3. Technical Comparisons –
     ServicesOnlineOn Premises
    SearchLimited access to queryFull text Query
    InfoPath Form ServicesOnly in E3, E4 and K1 plansRequired License to use InfoPath Form Services
    Claim Bases AuthenticationN/ACan use SQL , LDAP and AD authentication
    Managed AccountsN/AProvides a Managed Account to user at access the SP Admin Services
    Usage reporting and LoggingN/AProvides LOGS and Reporting to check the exceptions and System Report.
    Alternate Access MappingN/AProvides a map requests where the URL of a Web request received by Internet Information Services (IIS) differs from the URL that was typed by a user
    SharePoint Health AnalyserN/ASite collection pre-upgrade health check examines a site collection and then generates a report listing ay potential upgrade issues and how to address the issues

  4. SharePoint OnPrem Prons and Cons
    ProsCons
    Control PerformanceCost of internal resources (staff, hardware, software, etc)
    Scale Up and Scale OutAdditional Geographic redundancy costs
    Reduces Bandwidth requirementsDisaster Recovery dependent on internal capabilities
    Fully CustomizableScale Up/Out Cost( SW/HW)
    Full Server and SQL DatabasePatching Servers/farms
    Migrate as NeededExtra configurations for External Collaboration
    Seamless Single Sign on with Corporate Active Directory
  5.  SharePoint Online Prons and Cons
    ProsCons
    Uptime 99.99%More ISP Bandwidth
    Multiple Data centersLimited Customizations
    Geographically redundantPossible Storage Costs
    Shorted release cycleRecovery SLAs
    Managed Services (SaaS)No Server access
    Pay as you go (Low Cost)
    Reduced impact on internal IT resources
    Scalability