[Title] Added, getPermissions util function