SharePoint API Management help!

%3CLINGO-SUB%20id%3D%22lingo-sub-213127%22%20slang%3D%22en-US%22%3ESharePoint%20API%20Management%20help!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-213127%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFirst%2C%20I%20hope%20that%20this%20is%20the%20right%20place%20to%20post%20this%20querstion%2C%20otherwise%20just%20tell%20me%20where%20I%20would%20move%20the%20post.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20having%20some%20kind%20of%20issue%20in%20the%20API%20administration%20page%20of%20the%20Sharepoint%20administration%20area%20in%20Office%20365.%20I%20have%20created%202%20apps%20that%20are%20using%20Graph%20to%20get%20information%3A%20one%20app%20uses%20the%20user%20object%20and%20the%20other%20is%20using%20the%20calender%20object.%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20one%20using%20the%20user%20object%20is%20installed%20in%20SharePoint%20and%20is%20getting%20the%20user%20list%20without%20problem.%3C%2FP%3E%3CP%3EWhen%20it%20comes%20to%20the%20other%20app%2C%20I%20tested%20it%20by%20running%20it%20from%20my%20local%20server%20before%20upload%20it%20to%20Sharepoint%20and%20it%20works%2C%20but%20here%20comes%20the%20problem.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20uninstalled%20the%20second%20app%20in%20order%20to%20upload%20it%20and%20run%20it%20from%20SharePoint%20instead%20from%20my%20local%20server%20but%20when%20I%20take%20a%20look%20to%20the%20API%20administration%20page%20I%20can%20see%20that%20the%20second%20app%20still%20have%26nbsp%3Baccess%20to%20MS%20Graph%20and%20I%20can't%20find%20the%20way%20to%20disable%20it.%20Se%20the%20image%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20664px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F37222i3DF5D6FF4DB2705D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Sk%C3%A4rmklipp.PNG%22%20title%3D%22Sk%C3%A4rmklipp.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAs%20you%20see%20both%20apps%20share%20the%20same%20api%20name%20nd%20I%20can't%20find%20the%20way%20to%20reject%20the%20calendar%20app.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20the%20apps%20I%20am%20using%20this%20code%20to%20set%20the%20api%20permission%20request%3A%3C%2FP%3E%3CP%3Efor%20calendar%20app%3A%3C%2FP%3E%3CDIV%3E%3CPRE%3E%3CSPAN%3E%22webApiPermissionRequests%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%5B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20%7B%3C%2FSPAN%3E%3CBR%20%2F%3E%20%20%20%3CSPAN%3E%22resource%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%3C%2FSPAN%3E%3CSPAN%3E%22Microsoft%20Graph%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3CBR%20%2F%3E%20%20%20%3CSPAN%3E%22scope%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%3C%2FSPAN%3E%3CSPAN%3E%22Calendars.Read%22%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20%5D%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3Efor%20the%20user%20app%3A%3C%2FP%3E%3CDIV%3E%3CPRE%3E%3CSPAN%3E%22webApiPermissionRequests%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%5B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20%7B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%22resource%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%3C%2FSPAN%3E%3CSPAN%3E%22Microsoft%20Graph%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%22scope%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%3C%2FSPAN%3E%3CSPAN%3E%22User.Read.All%22%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20%7D%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20%5D%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20I%20need%20to%20user%20different%20resources%20name%3F%3C%2FP%3E%3CP%3EBest%20regards%3C%2FP%3E%3CP%3EAmerico%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-213127%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Regular Contributor

Hi,

 

First, I hope that this is the right place to post this querstion, otherwise just tell me where I would move the post.

 

I am having some kind of issue in the API administration page of the Sharepoint administration area in Office 365. I have created 2 apps that are using Graph to get information: one app uses the user object and the other is using the calender object. 

The one using the user object is installed in SharePoint and is getting the user list without problem.

When it comes to the other app, I tested it by running it from my local server before upload it to Sharepoint and it works, but here comes the problem. 

I have uninstalled the second app in order to upload it and run it from SharePoint instead from my local server but when I take a look to the API administration page I can see that the second app still have access to MS Graph and I can't find the way to disable it. Se the image:

Skärmklipp.PNG

As you see both apps share the same api name nd I can't find the way to reject the calendar app.

 

In the apps I am using this code to set the api permission request:

for calendar app:

"webApiPermissionRequests": [
{
"resource": "Microsoft Graph",
"scope": "Calendars.Read"
}
]

for the user app:

"webApiPermissionRequests": [
{
"resource": "Microsoft Graph",
"scope": "User.Read.All"
}
]

 

Do I need to user different resources name?

Best regards

Americo

0 Replies