Giter Site home page Giter Site logo

ms-luf / use-azuread Goto Github PK

View Code? Open in Web Editor NEW
2.0 5.0 1.0 503 KB

cmdlets to manage your Azure Active Directory Tenant (focusing on Administrative Unit features) when AzureADPreview cannot handle it correctly

PowerShell 100.00%
azure azure-active-directory azure-active-directory-graph-api powershell powershell-module administrative-units

use-azuread's People

Contributors

ms-luf avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

use-azuread's Issues

Filter for Sync-ADUsertoAzureADAdministrativeUnitMember

Is it possible to be add a filter for Sync-ADUsertoAzureADAdministrativeUnitMember

We have some users where their UPN is such that they are not getting synced. As a result it will never find them (domain.local upn).

It would be very good if we could include a filter for UPN's that we wish to get synced by the Sync-ADUsertoAzureADAdministrativeUnitMember command.

Sync-AdUserToAZureADAdministrativeUnitMember only lists first 100 users.

The command for getting the list of existing users in a AU is missing the -all $true command. This means that it only finds the first 100 users. For every user after that it will try to re-add the user and you get a whole screen full of red errors as the object is already in the AU.

To fix update the line.
$AZADMUnitMember = $AZADMUnit | Get-AzureADAdministrativeUnitMember

To
$AZADMUnitMember = $AZADMUnit | Get-AzureADAdministrativeUnitMember -all $true

This then gets the full list of users that are a member of the AU and no longer tries to re-add the users back in.

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.