Multi Tennant Saas

HI is it possible to do it via a header value. if the header contains info about organisation. then change get only users for this organisation.