I have implemented it sucesfully from this instruction: https://github.com/microsoft/Reporting-Services/tree/master/CustomSecuritySample.
However i don't get how can i manage user roles or groups with this extension. How can i add users to one of existing groups or create new group and then add them. My goal is to not do it manually in SSRS web service.