2

I am a new user of SharePoint, and I am currently learning the App development model. I have some questions for SharePoint Apps specialists.

  1. When a site owner download and install an app on his web site, do users see this app and can use it ? Or do they have to install the app on their instance ?

  2. I red it is possible to make CRUD operations using CSOM. So do I have to conclude it is possible to create a list on the SharePoint farm from a SharePoint-Hosted app using CSOM ?

  3. I also red an article about scope of app permissions. So there are four different scopes : Tenancy, Site collection, Web and List. Can I have more informations about Tenancy scope ? Because I did't understand this kind of scope.

Thanks in advance.

1 Answer 1

0
  1. Once it's installed by owners, it is available to all users and they can use it.

  2. Yes, you can do CRUD operations using CSOM. Yes, you can create list from sharepoint hosted app.

    Reference - Create List In SharePoint Using Sharepoint Hosted App

  3. From Tenancies and deployment scopes for SharePoint Add-ins

    A SharePoint tenancy is a set of site collections in either a SharePoint farm or in SharePoint Online. In SharePoint Online, the site collections belong to a single customer account. In a SharePoint farm, the site collections can be all the site collections in a SharePoint web application or a subset of them, or it can be a set of site collections from across multiple web applications in the farm.

    So, if your app permission has tenant scope, then you can do CRUD operations at the tenant level for example like Create/Delete site collections.

6
  • Thank you for all this information. The answer is very helpful ! Jun 13, 2017 at 7:10
  • Concerning the answer to the first question, can you tell me more about that ? If a user, not in Owners group, download and install an app, who could use it ? Just him ? People in his group too ? Jun 13, 2017 at 7:38
  • App can only be installed by owners or admins. Once its installed, anybody who has permissions on the site can use the app. Jun 13, 2017 at 8:14
  • Ok thank you ! I have a last question (yes, again). You said I can create site collections if my app has the tenant rights scope. I concluded if my app has web rights scope, it can creates sub-sites, right ? But I saw in this link it is not possible to do it. Maybe I may have misunderstood. Jun 13, 2017 at 9:05
  • Thats correct - Host web has url as https://sitecollectionurl.com while your app web will have a url somewhat as https://sitecollectionurl-bdf2016ea7dacb.com. So, you can create a subsite like https://sitecollectionurl.com/subsite using Sharepoint hosted app . But inside app web, you can't create subsite, this is by design. Basically, Sharepoint-hosted app is itself a subsite. Hope i made things clear Jun 13, 2017 at 9:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.