Questions tagged [provider-hosted-app]

A SharePoint 2013 App that is not hosted in SharePoint, but rather by the developer of the app. This hosting is not necessarily done in SharePoint.

198 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
326 views

How to set HTML field security using CSOM

Is there a way to set the HTML field security using CSOM? I already found a way to use PowerShell Scripts but i wondering if there is also a way to use CSOM. PowerShell: $web.ScriptSafeDomains.Add("...
6
votes
0answers
780 views

SharePointContextProvider.Current.GetSharePointContext(Context) returns null on postback - provider hosted app

I have a provider hosted app hosted on Azure and installed in SharePoint Online (Office 365). While testing the app, I found a strange issue, where if the page remains idle for around 10 mins and then ...
6
votes
1answer
2k views

SharePoint App - Custom ribbon button enable/disable

I am deploying custom ribbon button using SharePoint provider hosted app. I was able to show button where I wanted but not able to control enable or disable state of the button. It remains active ...
5
votes
0answers
47 views

The Client ID submitted in your add-in package does not match the Client ID submitted via the Seller Dashboard

I have registered my Provider Hosted Add-in to Microsoft Seller Dashboard. Microsoft has send back a report with this error: The Client ID submitted in your add-in package does not match the ...
4
votes
0answers
188 views

Get current page URL and Title from a Provider Hosted add-in Part?

I'm looking to see if there is a way to grab the current URL and title of the page that the add-in part is residing on. The add-in part is a Provider Hosted add-in with the main piece living outside ...
4
votes
0answers
549 views

Remote Event Receivers not firing in case of Service to Service authentication scenario using Azure AD

I have created a SharePoint app(Add in) with a RemoteEventReceiver subscribed to Item Added Event on a custom list. After installing app in office 365 I can log into portal and add item to list and it ...
4
votes
0answers
522 views

Httpcontext.session is null in Provider hosted app

I have a on premise provider hosted app and when i publish the web part on my local IIS server and uploading the app file to app catalogue and trying to access the default page, I am getting ...
3
votes
0answers
66 views

How to restrict the Provider Hosted App installation on subsite?

I have created a Provider Hosted App for SharePoint On-Premises and SharePoint Online. My requirement is that this app should only installed if its a Site Collection. If it is a Site within a Site ...
3
votes
0answers
387 views

Get list of Azure Active Directory Client Users in provider hosted app SharePoint online

I am trying to get Azure active directory users from provider hosted app with following code: private void bindUsers() { ActiveDirectoryClient client = AuthenticationHelper....
3
votes
0answers
365 views

Expose Internal Web Service To SharePoint Online

I have several web services that run internally that are utilised within SharePoint. We are using SharePoint 2013 On Prem but are planning a move to the cloud. I currently have a farm solution which ...
3
votes
0answers
888 views

{StandardTokens} token in CommandAction Url does not get replaced

I have a provider hosted add-in running on a SharePoint Online development site that has several lists as part of the solution. My goal is on when somebody clicks a Ribbon CustomAction associated ...
3
votes
0answers
128 views

Is there a unique ID for add-in instance?

I'm developing a SharePoint add-in with provider hosted app. One requirement is to uniquely identify add-in instances. The user can install add-in multiple times. Provider hosted app stores mapping ...
3
votes
1answer
777 views

Low-Trust Provider Hosted App Unauthorized for FBA users

I configured my on-premise SharePoint environment for Low-Trust provider hosted apps as per below article "https://msdn.microsoft.com/en-us/library/dn155905.aspx" My SharePoint web application ...
3
votes
1answer
401 views

User 'app@sharepoint' doesn't exist in UPA by UPN or SID, and user with this SID was not found in AD

I am having an issue on Sharepoint Online(Provider-hosted app) with calling User Profile REST API using AppOnlyAccessToken. My app has the feature to give permission on the fly to 'AllProfiles.Manage' ...
3
votes
1answer
287 views

Publishing a provider hosted app: StartPage element

I have created a provider hosted app which is primarily used for testing several aspects of a SharePoint environment. The app will be installed in different customer environments, so on different ...
3
votes
1answer
265 views

can provider-hosted app deployed outside the domain when using s2s

I'm creating a SharePoint provider-hosted app using visual studio 2013 in a machine and connecting to SharePoint 2013 on another machine. Visual studio is not in the same domain as SharePoint domain....
2
votes
1answer
124 views

Call rest api from provider hosted app

I want to call this API -> /_api/SP.UserProfiles.PeopleManager/GetMyProperties from SharePoint provider hosted app, but whenever I'm calling this API what I got is 403 forbidden issue. Here is my ...
2
votes
0answers
145 views

Issue With Provider hosted app in SharePoint Online for the Users Randomly

Background We had developed a provider hosted app with Web Forms template for copying the content(list Items,Documents) from one site collection to another site collection,for this we are doing this ...
2
votes
1answer
229 views

Is there a way to attach a Remote Event Receiver to all the custom lists inside a site collection + can i test the RER without having Azure ServiceBus

I have the following:- Sharepoint Online. Visual Studio 2015. Azure free trial account. now i want to do the following:- Develop a remote event receiver which will get fired when items are added ...
2
votes
0answers
59 views

Is it feasible to check PDF accessibility using c#?

I need to check accessibility for uploaded pdf using any dll or any other way. Is it feasible programmatically using c#. Accessibility of pdf means pdf contain header or footer and misspelled word in ...
2
votes
1answer
43 views

SharePoint Provider Hosted App stops working

I am having problem in Sharepoint provider hosted app. I have created one app with CSOM for script injection in sharepoint online and hosted in azure. I took solution from GitHub PNP script injection. ...
2
votes
0answers
746 views

SharePointContextProvider.Current.GetSharePointContext(Context) returns null on postback from IE browser from provider hosted app

I have a provider hosted app hosted on Azure and installed in SharePoint Online (Office 365). It works fine on Google Chrome browser but fails to get SharePoint context on post back using ...
2
votes
0answers
445 views

Is the OAuth implicit grant type supported for provider-hosted add-ins?

The provider of my provider-hosted add-in needs to ask for SharePoint (Online) permissions on the fly. OAuth can be used to achieve this, as documented here in MSDN. The authorization is low-trust ...
2
votes
0answers
111 views

Provider Host App- App Domain

I am new to Provider Hosted App developement. I am planning to create a provider host app and while I was reading many articles , I got confused some terminologies like App-domain and Forward lookup ...
2
votes
0answers
691 views

How to perform a search query on behalf of a user from an app-only ACS context

We have a client requirement where we have a scheduled process that needs to perform a collection of search queries towards Office365/SharePoint Online on behalf of various users to ensuring that the ...
2
votes
0answers
37 views

Creating Charts in 0365

I am developing a Share-point Application in O365. Will it be possible to use web-part in online premise or only app part can only be used. Following is the code I have used. I am getting the Access ...
2
votes
0answers
61 views

Attach InfoPath to AppWeb Library in SharePoint Online

Error while adding InfoPath form to form Library created using SharePoint Hosted App which will be deployed to AppWeb. This form template is browser-compatible, but it cannot be browser-enabled on ...
2
votes
0answers
646 views

Get SharePoint group permissions level name based on group name Using SharePoint Rest API

I am trying to get SharePoint User group permissions (Ex: Read, Contribute) based on the group name using SharePoint Rest API. My goal is to get the permission level of the group and disable features ...
2
votes
0answers
604 views

Rest API calls from provider hosted apps

Here is the scenario. We have a product built on linux systems and the data is available through REST API. The web application which is built on JAVA is also hosted on the same environment. Few of ...
2
votes
0answers
180 views

Add-in web (app web) authentication using credentials from Trusted identity provider

I have set up a SharePoint web application with custom Trusted identity provider: I have built provider hosted add-in (app) and successfully deployed it to a site within aforementioned web ...
2
votes
0answers
68 views

Is cross-site lookup possible with a provider-hosted app?

I have following problem. I got two projects, one sharepoint-hosted app and another provider hosted app. Both contain a couple of lists. So far so good. Now I need the data from the sharepoint-hosted ...
2
votes
0answers
94 views

Deploying default mvc provider hosted app

I am trying to test provider hosted apps. I created the default MVC application with no changes. The issue I am running into is permissions for the app. When I deploy with AppPermissionsRequests in ...
2
votes
0answers
743 views

SharePoint 2013: Retreving the list of files on a List I always get an empty result

I have a list in SharePoint on Premise in which I know there are 2 files and a folder. If I try to get the list of files from it I always get an empty response like in the example: GET :url/web/...
2
votes
0answers
981 views

Access Denied Error with Provider Hosted App (MVC/CSOM)

I built a PHA using MVC a little while ago. I'm receiving "Access denied. You do not have permission to perform this action or access this resource." error when trying to update or even access simple ...
2
votes
0answers
1k views

How to get a new refresh token after it expires?

How to get a new refresh token after it expires? We have a scenarios in provider-hosted app which require to cache the refresh token in db, and we were reusing it to generate client context. It was ...
2
votes
0answers
386 views

Add a reference to a JavaScript file in a custom action for a provider hosted app

I have a custom ribbon button in my app where I am trying to add logic to enable/disable the button based on whether or not the selected items are records. I am able to get the EnabledScript attribute ...
2
votes
1answer
765 views

Not able to add an app part to the page with a shared provider hosted app

Situation: I created a SharePoint provider hosted app that contains an app part. I installed the app inside the app catalog. By using the deployment option on an app installed in the app catalog, I ...
2
votes
1answer
616 views

SharePoint Apps : Who can see it in “Site contents”?

Here is a good sample project that explains how to use APPS to provision custom components on sites in SharePoint online with custom fields, content types etc. In brief, the app explained in the video ...
2
votes
0answers
96 views

provider hosted app - access a list in mysite

I am creating a provider hosted app for O365 and have given read permission on tenant. Is there any way, I can access a list present in mysite of any user (not just the current user)? If for example, ...
1
vote
0answers
25 views

Is it possible to authenticate a user in Azure AD from a SharePoint 2013 Provider Hosted Add-In client side

We are developing a SharePoint 2013 Provider Hosted Add-In that calls an API in Azure. The API an App Service that has Azure AD Authentication and OAuth implicit grant type. Our wish is to ...
1
vote
0answers
11 views

Any API to install add-ins from app store programmatically?

I have two questions: Is there any API like ALM API to install provider hosted add-ins from app store? Even if I install it manually, Get-PnPApp does not return the id of apps installed from app ...
1
vote
0answers
31 views

Error when deploying .sppkg file to SharePoint App Catalog

I have been following this tutorial, and I have been having a bit of trouble deploying the app to the App Catalog in my Office 365 SP-Online tenant. I decided to go back and start again, but this ...
1
vote
0answers
28 views

SP Host web look not propagated to chrome control in add-in web

I have a provider hosted add-in which uses chrome control. Previously, if I changed the look of SP host web, that change would propagate to add-in web too and chrome control would update. This is ...
1
vote
0answers
63 views

Provider hosted app: TokenHelper not authorized to get context

I followed this tutorial to deploy Provider Hosted App to production environment. It has a proper SSL certificate installed, it's registered within SharePoint and TokenHelper class is modified. App ...
1
vote
0answers
58 views

Unauthorized error on GetProvisioningTemplate

I have Provider Hosted Add-In and everything is working as expected but fails on 'web.GetProvisioningTemplate(creationInfo)'. it gives me below error The remote server returned an error: (401) ...
1
vote
0answers
67 views

Cannot debug Provider-Hosted Add-In: VS2017 hangs opening Chrome (resolved)

Update: Resolved (hope so). Maybe this is a bug and upgrade VS2017 to to 15.7.6 helps. I close my Chrome every time before f5 -- Every How-to for beginners in the net say "Hit F5 and voila!" - but ...
1
vote
0answers
322 views

UserProfileProperties: You do not have permission to perform this action or access this resource

C#: PeopleManager peopleManager = new PeopleManager(clientContext); PersonProperties personProperties = peopleManager.GetMyProperties(); try { clientContext.Load(personProperties, p => p....
1
vote
0answers
57 views

Visual Studio get stuck at “Communicating with SharePoint” when deploying

I am trying to deploy a provider-hosted sharePoint add in visual studio 2017 and sharePoint 2016. I have successfully created a Publish Profile using the clientID and secretID. The connection to the ...
1
vote
0answers
30 views

Authenticate SharePoint On-Premise from Android App

How to Authenticate SharePoint On-Premise Rest APIs from an Android App?
1
vote
1answer
68 views

How to add .app (app part) into a share point page using powershell?

I have an App which is already deployed into SharePoint site. I want to add that .app file into a SharePoint page using powershell script. Thanks in advance.