Custom Attribute to export specific info CSV users info

Candice Stephens 1 Reputation point
2022-10-24T09:19:26.517+00:00

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.
Regards

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.
34 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rafael da Rocha 5,171 Reputation points
    2022-10-24T09:48:39.45+00:00

    Hello @Candice Stephens ,

    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.