Is it possible to pass the MetaData as a condition to partition a synchronization?

Is it possible to pass the MetaData as a condition to partition a synchronization?

I need the partition value in sync to be different from %%user.id because the value that will control the partition I get from a MetaData in authentication via JWT in Realm, I tried something like %%user.profile.puid , but in the log I get an undefined comparison.

How am i running

 const credentials = Realm.Credentials.jwt(response.access_token);

        const user = await app.logIn(credentials);

        if (user) {
          setUserId(user.profile.puid as string); // State where it will be passed to the sync command on the partition
          setUser(user);
        }

In the permission configuration I didn’t find any example that shows how to do this, I tried as follows…

{
  "%%partition": "%%user.profile.puid"
}

The log tells me that the value is undefined


I don't understand why in the permissions area the rule to retrieve the `puid` doesn't work because the logged in user has the data, the realm doesn't support this type of operation?

Sorry for English, it’s not my mother tongue, and I’m new to Realm