Assign roles to active directory user xpack

How do i assign roles to active directory users , please help wit the same.

https://www.elastic.co/guide/en/x-pack/current/mapping-roles.html here is the information for the role mapping on PKI, LDAP and AD realms.