{"record":{"id":"81b815110425f543","repo":"RocketChat/Rocket.Chat","slug":"saml-user-data-map-invalid-identifier-configurati","errorCode":null,"errorMessage":"SAML User Data Map: invalid Identifier configuration received.","messagePattern":"SAML User Data Map: invalid Identifier configuration received\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"apps/meteor/server/lib/saml/lib/Utils.ts","lineNumber":459,"sourceCode":"\tpublic static normalizeUsername(name: string): string {\n\t\tconst { globalSettings } = this;\n\n\t\tswitch (globalSettings.usernameNormalize) {\n\t\t\tcase 'Lowercase':\n\t\t\t\tname = name.toLowerCase();\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn name;\n\t}\n\n\tpublic static mapProfileToUserObject(profile: Record<string, any>): ISAMLUser {\n\t\tconst userDataMap = this.getUserDataMapping();\n\t\tSAMLUtils.log({ msg: 'Mapping SAML Profile to User Object', userDataMap });\n\n\t\tif (userDataMap.identifier.type === 'custom') {\n\t\t\tif (!userDataMap.identifier.attribute) {\n\t\t\t\tthrow new Error('SAML User Data Map: invalid Identifier configuration received.');\n\t\t\t}\n\t\t\tif (!profile[userDataMap.identifier.attribute]) {\n\t\t\t\tthrow new Error(`SAML Profile did not have the expected identifier (${userDataMap.identifier.attribute}).`);\n\t\t\t}\n\t\t}\n\n\t\tconst attributeList = new Map();\n\t\tfor (const attributeName of userDataMap.attributeList) {\n\t\t\tif (profile[attributeName] === undefined) {\n\t\t\t\tthis.log({ msg: 'SAML user profile is missing the attribute.', attribute: attributeName });\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tattributeList.set(attributeName, profile[attributeName]);\n\t\t}\n\t\tconst email = this.getProfileValue(profile, userDataMap.email);\n\t\tconst profileUsername = this.getProfileValue(profile, userDataMap.username, true);\n\t\tconst name = this.getProfileValue(profile, userDataMap.name, true);\n","sourceCodeStart":441,"sourceCodeEnd":477,"githubUrl":"https://github.com/RocketChat/Rocket.Chat/blob/2a7de457074cbb4d4373fbd9a4e5bea292c9c764/apps/meteor/server/lib/saml/lib/Utils.ts#L441-L477","documentation":"Error \"SAML User Data Map: invalid Identifier configuration received.\" thrown in RocketChat/Rocket.Chat.","triggerScenarios":"Thrown when the SAML user data map identifier configuration received from settings is invalid.","commonSituations":"See trigger scenarios.","solutions":["Configure the identifier section of the SAML user data map with a valid attribute name from the IdP profile."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2a7de457074cbb4d4373fbd9a4e5bea292c9c764","analyzedAt":"2026-08-18T15:26:39.429Z","contentChangedAt":"2026-08-18T15:26:39.429Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}