Added retrieval of app permissions to service