{"record":{"id":"1266e8c31bf7daa2","repo":"livekit/livekit","slug":"update-own-metadata-not-allowed","errorCode":null,"errorMessage":"update own metadata not allowed","messagePattern":"update own metadata not allowed","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/rtc/signalling/errors.go","lineNumber":26,"sourceCode":"//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\npackage signalling\n\nimport (\n\t\"errors\"\n)\n\nvar (\n\tErrInvalidMessageType          = errors.New(\"invalid message type\")\n\tErrNameExceedsLimits           = errors.New(\"name length exceeds limits\")\n\tErrMetadataExceedsLimits       = errors.New(\"metadata size exceeds limits\")\n\tErrAttributesExceedsLimits     = errors.New(\"attributes size exceeds limits\")\n\tErrUpdateOwnMetadataNotAllowed = errors.New(\"update own metadata not allowed\")\n)\n","sourceCodeStart":8,"sourceCodeEnd":28,"githubUrl":"https://github.com/livekit/livekit/blob/ee45c3f0b1a83bf4352dbccb6607ebf70b2a5de6/pkg/rtc/signalling/errors.go#L8-L28","documentation":"Sentinel error returned when a participant attempts to update their own metadata without the updateOwnMetadata permission grant. The caller rejects the change with a RequestResponse of NOT_ALLOWED and the message 'does not have permission to update own metadata'.","triggerScenarios":"Thrown at pkg/rtc/signalling/errors.go:26 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Grant the canUpdateOwnMetadata permission in the participant's access token","Have a privileged actor (server-side API or admin) perform the metadata update instead","Check the permission grant before attempting self-metadata updates"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ee45c3f0b1a83bf4352dbccb6607ebf70b2a5de6","analyzedAt":"2026-09-02T03:56:08.477Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T06:17:21.866Z"}