Assign user group to view API endpoint