pub struct PersonsExternalLoginsResource<'a> { /* private fields */ }Expand description
client.persons().external_logins()
Implementations§
Source§impl<'a> PersonsExternalLoginsResource<'a>
impl<'a> PersonsExternalLoginsResource<'a>
Sourcepub fn delete(
&self,
person_id: impl Display,
external_login_id: impl Display,
) -> Result<()>
pub fn delete( &self, person_id: impl Display, external_login_id: impl Display, ) -> Result<()>
Unlink an external login provider from a person
DELETE /persons/{personId}/external-logins/{externalLoginId}
Removes this person’s identity mapping for the selected external-login provider. Requires the person themselves, a super administrator, or administer persons permission. A missing mapping returns 404, including on repeated deletion. The provider itself is retained. The method does not end existing sessions or verify that another login method remains available. A later external login is handled by the provider’s normal matching/linking workflow.
§Example
client.persons().external_logins().delete(42, 7)?;Sourcepub fn list(
&self,
person_id: impl Display,
) -> Result<Vec<ExternalLoginPersonMapping>>
pub fn list( &self, person_id: impl Display, ) -> Result<Vec<ExternalLoginPersonMapping>>
Get linked external login providers
GET /persons/{personId}/external-logins
Lists the external identity providers linked to the person. Requires access to the person’s settings: the person themselves, a super administrator, or administer persons permission; the read policy also permits personId=-1. Hidden providers are included when a mapping exists. This is a list of identity links, not a list of all configured login options. No pagination or guaranteed order applies. Person existence is not checked separately; no mappings returns an empty list.
§Example
for external_login in client.persons().external_logins().list(42)? {
println!("{}", external_login.external_login_id);
}