Audit - Compliance

When is compliance restricted- GAAS? When is compliance restricted- GAGAS? Thanks!