Skip to content

Commit 7e4643e

Browse files
ajworkosclaudemattgdgreptile-apps[bot]
authored
feat: Add custom_attributes field to OrganizationMembership (#306)
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com> Co-authored-by: Matt Dzwonczyk <9063128+mattgd@users.noreply.github.com> Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent f6defcb commit 7e4643e

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/main/kotlin/com/workos/usermanagement/models/OrganizationMembership.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonProperty
55
import com.workos.usermanagement.types.OrganizationMembershipStatusEnumType
66

77
/**
8-
* An organization membership is a top-level resource that represents a [User]s relationship
8+
* An organization membership is a top-level resource that represents a [User]'s relationship
99
* with an organization. A user may be a member of zero, one, or many organizations.
1010
*
1111
* @param id The unique ID of the organization membership.
@@ -16,6 +16,7 @@ import com.workos.usermanagement.types.OrganizationMembershipStatusEnumType
1616
* @param status Whether the organization membership is active or pending (see enum values in [OrganizationMembershipStatusEnumType]).
1717
* @param createdAt The timestamp when the user was created.
1818
* @param updatedAt The timestamp when the user was last updated.
19+
* @param customAttributes Custom attributes from the identity provider.
1920
*/
2021
data class OrganizationMembership @JsonCreator constructor(
2122
@JsonProperty("id")
@@ -40,5 +41,8 @@ data class OrganizationMembership @JsonCreator constructor(
4041
val createdAt: String,
4142

4243
@JsonProperty("updated_at")
43-
val updatedAt: String
44+
val updatedAt: String,
45+
46+
@JsonProperty("custom_attributes")
47+
val customAttributes: Map<String, Any> = emptyMap()
4448
)

0 commit comments

Comments
 (0)