AuthorizationPolicyRequestBuilder missing Patch
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start with Microsoft.Graph.Beta.Policies.AuthorizationPolicy.AuthorizationPolicyRequestBuilder and compare its available request methods with the authorization policy update documentation linked in the issue. Verify the expected PATCH URL and request-information methods, then confirm the generated builder exposes them and test the update request behavior.
Written by the indexing model from the issue text.
Description
Describe the bug
AuthorizationPolicy does not include the required PatchAsync method to update the policy.
PostAsync method is available but the endpoint does not support POST for updating.
ToPatchRequestInformation method is also unavailable.
Seems like the url is also "wrong" when Posting as it should be "policies/authorizationPolicy/authorizationPolicy"
according to: https://github.com/microsoftgraph/microsoft-graph-docs-contrib/blob/main/api-reference/beta/api/authorizationpolicy-update.md
Expected behavior
Having the Patch methods available to update the policy.
client.Policies.AuthorizationPolicy.PatchAsync(graphObject)
client.Policies.AuthorizationPolicy.ToPatchRequestInformation(graphObject)
How to reproduce
Review Microsoft.Graph.Beta.Policies.AuthorizationPolicy.AuthorizationPolicyRequestBuilder
The only available related methods are Get and Post (which the endpoint does not support)
SDK Version
5.79.0-preview
Latest version known to work for scenario above?
None
Known Workarounds
var pReq = client.
Policies.
AuthorizationPolicy.
WithUrl("https://graph.microsoft.com/beta/policies/authorizationPolicy/authorizationPolicy").
ToPostRequestInformation((AuthorizationPolicy)graphResource);
pReq.HttpMethod = Microsoft.Kiota.Abstractions.Method.PATCH;
await client.RequestAdapter.SendAsync(resPostReq, AuthorizationPolicy.CreateFromDiscriminatorValue);
Debug output
Nothing to show here since the methods are unavailable
Configuration
- MacOS Sonoma 14.6.1
- ARM64
Other information
No response
- Dominant language
- C#
- Stars
- 112
- Forks
- 37
- Avg merge
- 14h 57m
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoftgraph/msgraph-beta-sdk-dotnet
-
status:waiting-for-triage type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
status:waiting-for-triage type:bug
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
status:waiting-for-triage type:bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
microsoftgraph/msgraph-beta-sdk-dotnet#1155 · 1 comment ·
-
status:waiting-for-triage type:feature
Difficulty 4/5 3-5 days Newbie friendliness 45/100
microsoftgraph/msgraph-beta-sdk-dotnet#1129 · 1 reaction ·
-
.NET
Difficulty 3/5 1-2 days Newbie friendliness 25/100
All issues in microsoftgraph/msgraph-beta-sdk-dotnet
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·