Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Security group access : wrong method "put" instead of "post" #255

Open
JFLammech opened this issue Jun 19, 2024 · 0 comments
Open

Set Security group access : wrong method "put" instead of "post" #255

JFLammech opened this issue Jun 19, 2024 · 0 comments

Comments

@JFLammech
Copy link

Set security group access

$environmentName = "MyProd"
$aadGroupAccessValue = "00000000-1111-2222-3333-444444444444"
$response = Invoke-WebRequest -Method Put
-Uri "https://api.businesscentral.dynamics.com/admin/v2.11/applications/businesscentral/environments/$environmentName/settings/securitygroupaccess" -Body (@{ Value = $aadGroupAccessValue } | ConvertTo-Json)
-Headers @{Authorization=("Bearer $accessToken")} `
-ContentType "application/json"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant