Assigning User roles on Custom Database action script

Hi @dev-support,

Welcome to the Auth0 Community!

Have you tried adding it via the management api? Specifically this endpoint.

Here is an example rule that might be insightful: