Added endpoint for permissions.