Skip to content

Deserialization exception when adding group to lifecycle policy in Azure Active Directory #549

@paul-ciobanu

Description

@paul-ciobanu
  • Expected behavior. Please provide links to the specific Microsoft Graph documentation you used to determine the expected behavior.
  • Actual behavior. Provide error codes, stack information, and a Fiddler capture of the request and response (please remove personally identifiable information before posting).
  • Steps to reproduce the behavior. Include your code, IDE versions, client library versions, and any other information that might be helpful to understand your scenario.

I'm trying to add a group to a lifecycle policy and the call to
await Client.GroupLifecyclePolicies[lifecyclePolicyId].AddGroup(groupId).Request().PostAsync(ct); is throwing exception:
Newtonsoft.Json.JsonReaderException: 'Unexpected character encountered while parsing value: {. Path '', line 1, position 1.'

Expected behavior

The call should not throw

Actual behavior

The call is throwing

Steps to reproduce the behavior

Create an Office365 group in Azure Active Directory and add it to a lifecycle policy
and then call
await Client.GroupLifecyclePolicies[lifecyclePolicyId].AddGroup(groupId).Request().PostAsync(ct);

I'm using Microsoft.Graph 1.17.0 from a .NET Framework 4.6.1 project

addGroupToLifecyclePolicyRequest.txt
callstack.txt

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions