I have two apps one let’s say for a user and one for admin each of them has to register so I want to set Parse.Role from cloud code using beforeSave base on the clientKey
Parse Server does not allow multiple client keys. If you are not using the SDKs, you can try to use the Client Key for one of the app and let’s say the REST Key for the other. Then you can access the keys in the
beforeSave trigger through
request.headers. Anyway, why don’t you just set it directly from the frontend? I think it is the best option for you.