Custom Attribute to export specific info CSV users info


Good morning,

I have searched the internet trying to find an answer and I am new at this, but I'm trying to find a command to Get-ADUser but with the following attributes

  • Name
  • Surname
  • UPN
  • Company
  • License assigned
  • Roles Assigned
  • Subscriptions
  • Privileged rights (What rights they have to assign licenses or Global Admin, Give rights to Resource groups etc)

Is there a custom list I can work from as to what I can add in the script to customize the fields I need or do I have to manually search or manually extract each attribute I need.

Thank you very much.

Azure AI Personalizer
Azure AI Personalizer
An Azure artificial intelligence service that enables applications to personalize user experiences by learning from collective real-time user behavior.
31 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rafael da Rocha 4,966 Reputation points

    Hello @Candice Stephens (Azure Administration account) ,

    Get-AzureADUser will provide the properties for name, surname, upn, company
    Get-AzRoleAssignment will help with roles and privileges.

    Also, here's a related thread on Q&A that might contain relevant information to your final solution:

    0 comments No comments