question

ZinaSingelyn-4519 avatar image
0 Votes"
ZinaSingelyn-4519 asked RaytheonXie-MSFT commented

Share Point client ID

What do I need and how do enable my application to push specific data elements to a Share Point site.

sharepoint-dev
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ZinaSingelyn-4519 ,
would you please provide us with an update on the status of your issue?

0 Votes 0 ·

Hi @ZinaSingelyn-4519 ,
I am checking to see how things are going there on this issue.

0 Votes 0 ·

Hi @ZinaSingelyn-4519 ,
I am checking to see if the problem has been resolved.

0 Votes 0 ·

Hi @ZinaSingelyn-4519 ,
If there's anything you'd like to know, don't hesitate to ask.

0 Votes 0 ·

Hi @ZinaSingelyn-4519 ,
If you have any questions or progress, you can contact me in time.

Looking forward to your reply

Have a lucky day!

Thanks,
Raytheon Xie

0 Votes 0 ·

1 Answer

RaytheonXie-MSFT avatar image
0 Votes"
RaytheonXie-MSFT answered RaytheonXie-MSFT commented

Hi @ZinaSingelyn-4519 ,
We can register client id and client secret at following link

 https://<yoursiteurl>/_layouts/15/appregnew.aspx

139638-image.png

Then we go https://<yoursiteurl>/_layouts/15/appinv.aspx and fill the client id to lookup like following pic.
139577-image.png
Fill the App's Permission Request XML with following

 <AppPermissionRequests AllowAppOnlyPolicy="true">
 <AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="FullControl" />
 </AppPermissionRequests>

Create and trust it
139645-image.png
Finally we can use powershell

 Connect-PnPOnline -Url https://contoso.sharepoint.com/sites/demo -ClientId [Your Client ID] -ClientSecret "[Your Client Secret]"

or SharePoint PnP Sites Core library nuget package to connect sharepoint online

 string siteUrl = "Your Site Url";
 using (var cc = new AuthenticationManager().GetAppOnlyAuthenticatedContext(siteUrl, "[Your Client ID]", "[Your Client Secret]"))
 {
     cc.Load(cc.Web, p => p.Title);
     cc.ExecuteQuery();
     Console.WriteLine(cc.Web.Title);
 };



If an Answer is helpful, please click "Accept Answer" and upvote it.
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.



image.png (35.5 KiB)
image.png (59.0 KiB)
image.png (22.5 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ZinaSingelyn-4519 ,
Would you tell me whether your issue has been resolved or have any update?
I am looking forward to your reply.

Have a nice day!

Thanks,
Raytheon Xie

0 Votes 0 ·