Scanning Transmission X-ray microscopy (STXM) is a sensitive and selective probe for the penetration of rapamycin which is topically applied to human skin ex vivo and is facilitated by skin treatment with microneedles puncturing the skin. Inner-shell excitation serves as a selective probe for detecting rapamycin by changes in optical density as well as linear combination modeling using reference spectra of the most abundant species. The results indicate that mechanical damage induced by microneedles allows this drug to accumulate in the stratum corneum without reaching the viable skin layers. This is unlike intact skin which shows no drug penetration at all and underscores the mechanical impact of microneedle skin treatment. These results are compared to drug penetration profiles of other drugs highlighting the importance of skin barriers. High spatial resolution studies also indicate that the lipophilic drug rapamycin is observed in corneocytes. Attempts in data evaluation are reported to probe rapamycin also in the lipid layers between the corneocytes, which was not accomplished before. These results are compared to recent results on rapamycin uptake in skin where barrier impairment was induced by pre-treatment with the enzyme trypsin and drug formulations leading to occlusion.