Skip to main content

is_account_sid

Function is_account_sid 

Source
pub fn is_account_sid(sid: &str) -> bool
Expand description

Is this the SID of one person’s own account, as text: S-1-5-21-<a>-<b>-<c>-<rid> (a local or a domain account) or S-1-12-1-<a>-<b>-<c>-<d> (an account of an organisation’s directory), every part digits only? A group, a well-known SID (Everyone, Authenticated Users, Users, Anonymous, the system, the administrators) and a built-in account that nobody signs in with (Guest and the like, relative ids 501 to 999) are not.