Skip to content

Conversation

@jmcguire
Copy link
Contributor

The User now has an "impersonator_user_id" field. This is the UUID of the other user that is impersonating this user. It will be None if impersonation is not happening (which it normally isn't).

The User objects also have a "metadata" field, which is private, user-specific metadata which can be set via the regular update_metadata endpoint. The user will never see or use this metadata, it's just for the PropelAuth customer.

The Org objects have an "org_metadata" field. Much like user metadata, this is a private field.

The metadata objects are simple hashes with a string key and any JSON object for the value.

The User now has an "impersonator_user_id" field. This is the UUID of the other user that is impersonating this user. It will be None if impersonation is not happening (which it normally isn't).

The User objects also have a "metadata" field, which is private, user-specific metadata which can be set via the regular update_metadata endpoint. The user will never see or use this metadata, it's just for the PropelAuth customer.

The Org objects have an "org_metadata" field. Much like user metadata, this is a private field.

The metadata objects are simple hashes with a string key and any JSON object for the value.
@jmcguire jmcguire marked this pull request as ready for review April 13, 2023 20:32
andrew-propelauth

This comment was marked as outdated.

#[serde(rename = "legacy_user_id", skip_serializing_if = "Option::is_none")]
pub legacy_user_id: Option<String>,
#[serde(rename = "impersonated_user_id", skip_serializing_if = "Option::is_none")]
pub impersonated_user_id: Option<String>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this field exists for UserMetadata, just for the User since that's in the access token.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@jmcguire jmcguire merged commit a618a28 into main Apr 15, 2023
@jmcguire jmcguire deleted the feature/metadata_and_impersonate branch April 15, 2023 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants