Skip to content

Group creation with custom attributes failed #1609

@Marek26

Description

@Marek26

Describe the bug?

The bug described here #1582 still exists.

Group creation with custom attributes is still failing in Version 21.

What is expected to happen?

Create a group with custom attributes should work as in previous SDK versions (v18).

What is the actual behavior?

API Error:

{
  "errorCode" : "E0000001",
  "errorSummary" : "Api validation failed: New UserGroup",
  "errorLink" : "E0000001",
  "errorId" : "oae14ET2_eqS_23M9-DSwRfig",
  "errorCauses" : [ {
    "errorSummary" : "Property name 'additionalProperties' is not defined in profile"
  } ]
}

Reproduction Steps?

// Create the new groups profile
final var oktaUserGroupProfile = new OktaUserGroupProfile();
oktaUserGroupProfile.setName("NewGroupName");
oktaUserGroupProfile.setDescription("My new groups description");
oktaUserGroupProfile.getAdditionalProperties().put("myAdditionalProperty", "myValue");

// Package the profile in an AddGroupRequest
final var addGroupRequest = new AddGroupRequest();
addGroupRequest.setProfile(oktaUserGroupProfile);

// Call okta to create the new group
final var createdGroup = groupApi.addGroup(group);

Additional Information?

No response

Java Version

21

SDK Version

21.0.0

OS version

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions