Access Site Collection in Powershell with Client Id and Client Secret?
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
4
down vote
favorite
Is there a way to Create a context in powershell using Client Id and Client Secret ?
Currently I am using $context.Credentials
in my code.
sharepoint-online powershell
add a comment |Â
up vote
4
down vote
favorite
Is there a way to Create a context in powershell using Client Id and Client Secret ?
Currently I am using $context.Credentials
in my code.
sharepoint-online powershell
add a comment |Â
up vote
4
down vote
favorite
up vote
4
down vote
favorite
Is there a way to Create a context in powershell using Client Id and Client Secret ?
Currently I am using $context.Credentials
in my code.
sharepoint-online powershell
Is there a way to Create a context in powershell using Client Id and Client Secret ?
Currently I am using $context.Credentials
in my code.
sharepoint-online powershell
sharepoint-online powershell
edited 28 mins ago
Gautam Sheth
22.2k12046
22.2k12046
asked 35 mins ago
Joshua Dominic Sibug
648
648
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
4
down vote
You can use PnP PowerShell to connect to SharePoint using client id as below:
Connect-PnPOnline -Url <url> -AppId <clientid> -AppSecret <clientsecret>
$context = Get-PnPContext
Reference - Connect-PnPOnline
Download - PnP PowerShell releases
If you have PowerShellGet installed, you can directly install it using Install-Module SharePointPnPPowerShellOnline
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
You can use PnP PowerShell to connect to SharePoint using client id as below:
Connect-PnPOnline -Url <url> -AppId <clientid> -AppSecret <clientsecret>
$context = Get-PnPContext
Reference - Connect-PnPOnline
Download - PnP PowerShell releases
If you have PowerShellGet installed, you can directly install it using Install-Module SharePointPnPPowerShellOnline
add a comment |Â
up vote
4
down vote
You can use PnP PowerShell to connect to SharePoint using client id as below:
Connect-PnPOnline -Url <url> -AppId <clientid> -AppSecret <clientsecret>
$context = Get-PnPContext
Reference - Connect-PnPOnline
Download - PnP PowerShell releases
If you have PowerShellGet installed, you can directly install it using Install-Module SharePointPnPPowerShellOnline
add a comment |Â
up vote
4
down vote
up vote
4
down vote
You can use PnP PowerShell to connect to SharePoint using client id as below:
Connect-PnPOnline -Url <url> -AppId <clientid> -AppSecret <clientsecret>
$context = Get-PnPContext
Reference - Connect-PnPOnline
Download - PnP PowerShell releases
If you have PowerShellGet installed, you can directly install it using Install-Module SharePointPnPPowerShellOnline
You can use PnP PowerShell to connect to SharePoint using client id as below:
Connect-PnPOnline -Url <url> -AppId <clientid> -AppSecret <clientsecret>
$context = Get-PnPContext
Reference - Connect-PnPOnline
Download - PnP PowerShell releases
If you have PowerShellGet installed, you can directly install it using Install-Module SharePointPnPPowerShellOnline
answered 29 mins ago
Gautam Sheth
22.2k12046
22.2k12046
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsharepoint.stackexchange.com%2fquestions%2f249206%2faccess-site-collection-in-powershell-with-client-id-and-client-secret%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password