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

Group creation with custom attributes failed #1609

Open
Marek26 opened this issue Mar 14, 2025 · 1 comment
Open

Group creation with custom attributes failed #1609

Marek26 opened this issue Mar 14, 2025 · 1 comment
Assignees

Comments

@Marek26
Copy link

Marek26 commented Mar 14, 2025

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

@Marek26 Marek26 added the bug label Mar 14, 2025
@prachi-okta prachi-okta self-assigned this Mar 18, 2025
@prachi-okta
Copy link
Contributor

Hi @Marek26, thanks for reporting this! I will be taking a look at this.

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

No branches or pull requests

3 participants