TL;DR In this post I will provide an example how to set the scope of…