rest api to get all the security roles inside a business unit
It depends on which D365 product you're using.
D365 consists of many applications, such as Finance & Operations, Sales or Business Central. You're asking in D365 general forum, therefore it's not clear which product you have in mind.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.