Hi @dstringers,
Welcome to the Community!
I think this approach makes sense!
Unfortunately, rules cannot be applied to individual applications, so you will need to add a check on the context object’s context.clientName
property like so:
function ruleForSpecificApp(user, context, callback) {
// only run rule for NameOfTheApp
// bypass this rule for all other apps
if(context.clientName !== 'NameOfTheApp'){
return callback(null, user, context);
}
// add rule logic here
return callback(null, user, context);
}
Here is an FAQ for applying default roles which may be helpful for your implementation: