LPS-45001 Modifying permission check query
LPS-45001 Sort according to service.xml