If i pass room metadata, does that mean participan...
# ask-ai
n
If i pass room metadata, does that mean participant is not joined in the room when it starts? I'm creating a participant token
t
Thanks for reaching out, Hari. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hi there! I wanted to clarify that passing room metadata doesn’t actually affect whether a participant can join a room when creating a participant token. Room metadata is really more about application-specific information tied to the room itself, helping to store and share state that everyone in the room can see. This data is managed separately through server-side APIs and doesn’t control access. When it comes to joining a room, what truly matters are the
VideoGrant
permissions encoded in the token—especially the
roomJoin
permission and the
room
field specifying which room the participant wants to join. The metadata you pass in the token is actually participant metadata, which sets the initial info for the participant joining but doesn’t affect whether they’re allowed in. Sources: Room metadata | LiveKit Docs | CLI Tools & Token Management | livekit/livekit_composite | DeepWiki | cmd/lk/token.go