IOS - Extract permissions from session object