get app id from app_identity, should be unified with new cloud services