
com.okta.sdk.resource.model.ProvisioningGroupsAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of okta-sdk-api Show documentation
Show all versions of okta-sdk-api Show documentation
The Okta Java SDK API .jar provides a Java API that your code can use to make calls to the Okta
API. This .jar is the only compile-time dependency within the Okta SDK project that your code should
depend on. Implementations of this API (implementation .jars) should be runtime dependencies only.
package com.okta.sdk.resource.model;
import java.util.Objects;
import java.util.Arrays;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* Provisioning action for the IdP User's Group memberships | Enum | Description | Existing OKTA_GROUP Memberships |
* Existing APP_GROUP Memberships | Existing BUILT_IN Memberships | | -------- |
* -----------------------------------------------------------------------------------------------------------------------------------------------------------------
* | ----------------------------------------------------------------------------------------------------- |
* ------------------------------ | ----------------------------- | | `APPEND` | Adds a User to any Group
* defined by the IdP as a value of the `sourceAttributeName` array that matches the name of the allow listed
* Group defined in the `filter` | Unchanged | Unchanged | Unchanged | | `ASSIGN` | Assigns a User
* to Groups defined in the `assignments` array | Unchanged | Unchanged | Unchanged | | `NONE` |
* Skips processing of Group memberships | Unchanged | Unchanged | Unchanged | | `SYNC` | Group memberships
* are sourced by the IdP as a value of the `sourceAttributeName` array that matches the name of the Group
* defined in the `filter` | Removed if not defined by the IdP in `sourceAttributeName` and matching
* name of the Group in `filter` | Unchanged | Unchanged | > **Note:** Group provisioning action is
* processed independently from profile sourcing. You can sync Group memberships through SAML with profile sourcing
* disabled.
*/
public enum ProvisioningGroupsAction {
APPEND("APPEND"),
ASSIGN("ASSIGN"),
NONE("NONE"),
SYNC("SYNC"),
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");
private String value;
ProvisioningGroupsAction(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static ProvisioningGroupsAction fromValue(String value) {
for (ProvisioningGroupsAction b : ProvisioningGroupsAction.values()) {
if (b.value.equals(value)) {
return b;
}
}
return UNKNOWN_DEFAULT_OPEN_API;
}
/**
* Convert the instance into URL query string.
*
* @param prefix
* prefix of the query string
*
* @return URL query string
*/
public String toUrlQueryString(String prefix) {
if (prefix == null) {
prefix = "";
}
return String.format("%s=%s", prefix, this.toString().toString());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy