S3Permission permission -> int permission