osm_permissions function

Retrieving permissions