How to configure scope depending on group assignment to the user?


When I watching the video Training Sneak Peek: API Access Management with OAuth (, I saw that scopes return to access token can be changed based on different group assigned. Is it still valid?

Promo Users ( assigned and access token getting promo:read scope only.

Promo Admin ( assigned and access token getting promo:read, promo:create, promo:delete scopes.

If it is still valid, how do we configure to have similar behaviour?

Need help on this. Any idea?

Is this done by inline hooks? Are there any steps that I can follow?