You can use the azure ad connector from power apps but the user of the app will need to have permissions granted to them by an azure admin
https://alextofan.com/2019/02/06/how-to-grant-permissions-to-users-to-use-the-azure-ad-connector-in-flow/
also like any azure service the user of the app will need to have a full per apps or per user license for power apps. Just having the license tha comes with office 365 is not sufficient. My recommendation was a way to get around these requirements.
you can use the UpdateUser function to update a user’s active directory record from a power app. https://docs.microsoft.com/en-us/connectors/azuread/
use something like the following to update user record
AzureAD.UpdateUser(id,{userPrincipalName:Text,displayName:Text,mailNickname:Text,givenName:Text,surname:Text,accountEnabled:Boolean,jobTitle:Text,mobilePhone:Text,officeLocation:Text,preferedLanguage:Text,businessPhones:Table})
@Sumaira if this answers your question please mark it as a solution so other users can find it