The permitted status of Ayahuasca in the country is intricate . While it itself is a restricted substance under the narcotics code, the brew containing it are subject to a legal ambiguity . Certain religious groups , particularly those practicing Amazonian shamanism, might be able to gain waivers