Giter VIP home page Giter VIP logo

azureadtoolkit's Introduction

Azure AD Toolkit

The Azure AD Toolkit is a PowerShell module that providers helper cmdlets to manage the credentials of your application or service principal.

Installing the module

    Install-Module AzureADToolkit

Using the module

Connecting to your tenant

Connect to the user's default tenant.

    Connect-AADToolkit    

Specify the Tenant ID if the user signing in has access to multiple Azure Active Directory tenants.

    Connect-AADToolkit -TenantId 344b8aab-389c-4e4a-8fa1-4c1ae2c0a60d

Exporting a list of all the Service Principals and Applications having credentials

    Get-AADToolkitApplicationCredentials | Export-Csv -Path '.\AppPermissions.csv'  -NoTypeInformation

Interactively removing and rolling over the certificates and secrets of a Service Principal or Application

This command provides a menu drive interface to view the credentials of an application and allows the user to remove or roll them over.

    Update-AADToolkitApplicationCredentials

Exporting a list of Service Principals and Applications with privilege scores (requires external module to generate Excel Workbook)

It is recommended that you use Connect-MgGraph -Scopes Application.Read.All to connect to Microsoft Graph PowerShell for this report. The minimum administrative role necessary to consent to this permission is Application Administrator.

Connect to Microsoft Graph PowerShell with the appropriate permissions:

    Install-Module ImportExcel
    Install-Module Microsoft.Graph
    Connect-MgGragh -Scopes Application.Read.All

This example will export the report to an Excel workbook:

    Build-AzureADAppConsentGrantReport -ReportOutputType ExcelWorkbook -ExcelWorkbookPath C:\temp\export.xlsx

This example will retrieve the data and store it in PowerShell objects instead of exporting to Excel:

    Build-AzureADAppConsentGrantReport -ReportOutputType PowerShellObjects

List all users with admin roles and their strong authentication status

Find Users with Admin Roles that are not registered for MFA by evaluating their authentication methods registered for MFA and their sign-in activity.

   Connect-MgGraph -Scopes RoleManagement.Read.Directory,UserAuthenticationMethod.Read.All,AuditLog.Read.All,User.Read.All,Group.Read.All,Application.Read.All
   Select-MgProfile -name Beta
   Find-UnprotectedUsersWithAdminRoles -Verbose -IncludeSignIns | Export-Csv ./admins.csv

Disconnecting from your tenant

    Disconnect-AzureADToolkit

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

azureadtoolkit's People

Contributors

f4rty avatar hoodat avatar jeftek avatar mepples21 avatar merill avatar microsoftopensource avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

azureadtoolkit's Issues

Needs documented list of required permissions

When I try to run Connect-AADToolkit, I"m blocked, with the message, "Microsoft Graph Powershell needs permission to access resources in your organization that only an admin can grant". It would be useful to have documentation here of exactly what rights are necessary in order to make use of this module. Does it actually require GA access, or would something lesser suffice?

couldn't execute Build-AzureADAppConsentGrantReport

I am not able to execute Build-AzureADAppConsentGrantReport cmdlet although I have the permission scope Application.ReadWrite.All.

image

As the error message says it would just need Application.Read.All, But I do have Application.ReadWrite.All in the scope.

Am I missing any other permissions?

Licensing requirements

What level of AAD license does this require? please specify this and any other prerequisites in the readme

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.