Added role granularity to gift api (work in progress)