Any API update or permission setting changed for SharePoint using Microsoft graph API for share point integration ?

Anonymous
2023-02-14T08:44:19.41+00:00

Hi team,

As part of project requirement, I was using Microsoft graph API for SharePoint integration to our project. and the integration for SharePoint was working fine. But recently we are facing problem with SharePoint with Microsoft graph API. And share point in not working.

Note that, before integration of SharePoint was working as expected and we didn't made any changes in API or permission side.

please find logs for the same attached

1) Exception Information 

============================================= 

Exception Type: Microsoft.Graph.ServiceException 

Error: Code: generalException 

Message: General exception while processing 

Inner error: 

	AdditionalData: 

	date: 2023-01-23T05:01:34 

	request-id: 

	client-request-id: 

ClientRequestId: 

 

ResponseHeaders: Strict-Transport-Security: max-age=31536000 

request-id: 

client-request-id: 

x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"North Central US","Slice":"E","Ring":"3","ScaleUnit":"001","RoleInstance":"CH01EPF0000730F"}} 

Connection: close 

Cache-Control: no-store, no-cache 

Date: Mon, 23 Jan 2023 05:01:33 GMT 

 

StatusCode: InternalServerError 

RawResponseBody: {"error":{"code":"generalException","message":"General exception while processing","innerError":{"date":"2023-01-23T05:01:34","request-id":"","client-request-id":""}}} 

Message: Code: generalException 

Message: General exception while processing 

Inner error: 

	AdditionalData: 

	date: 2023-01-23T05:01:34 

	request-id: 

	client-request-id: 

ClientRequestId: 

 

HelpLink: NULL 

Source: Microsoft.Graph.Core 

HResult: -2146233088 

 

StackTrace Information 

============================================= 

   at Microsoft.Graph.HttpProvider.<SendAsync>d__18.MoveNext() 

--- End of stack trace from previous location where exception was thrown --- 

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 

   at Microsoft.Graph.BaseRequest.<SendRequestAsync>d__40.MoveNext() 

--- End of stack trace from previous location where exception was thrown --- 

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 

   at Microsoft.Graph.BaseRequest.<SendAsync>d__34`1.MoveNext() 

--- End of stack trace from previous location where exception was thrown --- 

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 

   at Microsoft.Graph.UserFollowedSitesCollectionWithReferencesRequest.<GetAsync>d__1.MoveNext() 

--- End of stack trace from previous location where exception was thrown --- 

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 

   at Mps.Client.Mfp.Service.Commons.ScanToOneDrive.Implementation.ScanToOneDriveService.<GetSharePointSites>d__6.MoveNext() 

--- End of stack trace from previous location where exception was thrown --- 

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 

   at Mps.Client.Mfp.WebHost.Modules.SharePointModule.<GetSharePointSites>d__9.MoveNext()

Is there any upgrade in graph API, or any changes in permission for SharePoint, Any suggestion and information will be helpful.

thanks,
Meera E

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft 365 and Office | SharePoint Server | Development
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2023-02-16T08:50:39.4333333+00:00

    Hi @Anonymous

    Per my test, I can create a folder in graph by c# with Files.ReadWrite.All, Sites.ReadWrite.All permission. You can refer to the following code

    GraphServiceClient graphClient = new GraphServiceClient( authProvider );
    
    var driveItem = new DriveItem
    {
    	Name = "New Folder",
    	Folder = new Folder
    	{
    	},
    	AdditionalData = new Dictionary<string, object>()
    	{
    		{"@microsoft.graph.conflictBehavior", "rename"}
    	}
    };
    
    await graphClient.Me.Drive.Root.Children
    	.Request()
    	.AddAsync(driveItem);
    
    

    And I checked the changelog of graph, there seems no such update recent.

    https://developer.microsoft.com/en-us/graph/changelog/?search=folder&filterBy=v1.0


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.