{"record":{"id":"d5780f1371d3049d","repo":"rustfs/rustfs","slug":"nosuchresource","errorCode":"NoSuchResource","errorMessage":"group '{0}' does not exist","messagePattern":"group '(.+?)' does not exist","errorType":"http","errorClass":"rustfs_policy::error::Error","httpStatus":404,"severity":"error","filePath":"crates/policy/src/error.rs","lineNumber":42,"sourceCode":"    #[error(\"{0}\")]\n    StringError(String),\n\n    #[error(\"crypto: {0}\")]\n    CryptoError(#[from] rustfs_crypto::Error),\n\n    #[error(\"user '{0}' does not exist\")]\n    NoSuchUser(String),\n\n    #[error(\"account '{0}' does not exist\")]\n    NoSuchAccount(String),\n\n    #[error(\"service account '{0}' does not exist\")]\n    NoSuchServiceAccount(String),\n\n    #[error(\"temp account '{0}' does not exist\")]\n    NoSuchTempAccount(String),\n\n    #[error(\"group '{0}' does not exist\")]\n    NoSuchGroup(String),\n\n    #[error(\"policy does not exist\")]\n    NoSuchPolicy,\n\n    #[error(\"policy in use\")]\n    PolicyInUse,\n\n    #[error(\"group not empty\")]\n    GroupNotEmpty,\n\n    #[error(\"invalid arguments specified\")]\n    InvalidArgument,\n\n    #[error(\"not initialized\")]\n    IamSysNotInitialized,\n\n    #[error(\"invalid service type: {0}\")]","sourceCodeStart":24,"sourceCodeEnd":60,"githubUrl":"https://github.com/rustfs/rustfs/blob/35af688cd9d41b4346fbe27dcf7250ba72046c1f/crates/policy/src/error.rs#L24-L60","documentation":"Policy error variant meaning the named group is absent from the identity store when resolving membership or attaching policy. The group name is embedded; callers map it to NoSuchEntity. It is the missing-entity guard — GroupNotEmpty is the related but distinct integrity guard on group removal.","triggerScenarios":"Thrown at crates/policy/src/error.rs:42 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Create the group before referencing it","Fix the group name or remove stale group references"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35af688cd9d41b4346fbe27dcf7250ba72046c1f","analyzedAt":"2026-08-20T21:57:04.799Z","contentChangedAt":"2026-08-20T21:57:04.799Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}