handle permissions for bucket
permissions for flipflop and bucket