Coder Social home page Coder Social logo

get-itips / interpretedusertype Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 3.0 45 KB

Open Source Collaboration Repository to keep track of different InterpretedUserType values and meaning

Home Page: https://get-itips.capazero.net/posts/sfbonprem-interpretedusertype

interpretedusertype's Introduction

NT LOGON

Andrés Gorzelany - @get-itips

Hi! 👋 I am Andrés Gorzelany, I am a Computer Science Engineer and I consider myself an IT Senior Consultant. I am a @MicrosoftDocs collaborator, I mostly respond to issues that users create against the Microsoft Docs articles, create pull requests and also review them. I am Argentinian and I moved to Costa Rica recently.

I love to travel and specially I love to attend conferences and meet new people from around the world. 🌎 🌏 🌍

Get in touch

Me at Ignite 2019

interpretedusertype's People

Contributors

agorzelanygh avatar dariomws avatar get-itips avatar markus-hanisch avatar robdy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

interpretedusertype's Issues

Lazy Contributor Guide

Suggesting adding some sample PowerShell code that will allow anyone to quickly check if their tenants have any InterpretedUserType values not documented here yet.

I used the following code.

Example 1
Works great for small tenants upto few thousands of users

Connect-MicrosoftTeams
Import-PSSession (New-CsOnlineSession)

$webRequest = Invoke-WebRequest -Uri "https://raw.githubusercontent.com/get-itips/InterpretedUserType/main/docs/InterpretedUserTypes.md"
$knownTypes = $webRequest.Content -split '\r?\n' -replace '^\|\s*(\w+).*','$1' | where { $_ -match '^\w+$' } | ConvertFrom-Csv | Sort-Object InterpretedUserType

$myTypes = Get-CsOnlineUser -ResultSize Unlimited | Select-Object InterpretedUserType | Group-Object InterpretedUserType -NoElement | sort Name
$myTypes.Name | where { $_ -notin $knownTypes.InterpretedUserType }

Example 2
Previous example takes minutes to run on tenants with dozens of thousands of users due to it downloads all userdata and then process all calculations locally. The following example moves filtering task from the client PC to the cloud, thus it runs significantly faster on larger tenants

# grub data from GitHub
$webRequest = Invoke-WebRequest -Uri "https://raw.githubusercontent.com/get-itips/InterpretedUserType/main/docs/InterpretedUserTypes.md"
$knownTypes = $webRequest.Content -split '\r?\n' -replace '^\|\s*(\w+).*','$1' | where { $_ -match '^\w+$' } | ConvertFrom-Csv | Sort-Object InterpretedUserType

# grub data from SFBO
Connect-MicrosoftTeams
$sfbo = New-CsOnlineSession
$myTypes = Invoke-Command -Session $sfbo -ScriptBlock { Get-CsOnlineUser -ResultSize Unlimited | Select-Object InterpretedUserType -Unique } | Select-Object InterpretedUserType

# report new types
$myTypes.InterpretedUserType | where { $_ -notin $knownTypes.InterpretedUserType }

some more values

AADConnectDisabledOnlineActiveDirectoryDisabledUser
AADConnectDisabledOnlineSfBUserWithTeamsLicensePendingDeletionFromAD
AADConnectDisabledOnlineTeamsUser
AADConnectDisabledOnlineTeamsUserPendingDeletionFromAD
AADConnectDisabledOnlineUserNotLicensedForService
AADConnectDisabledOnlineUserNotLicensedForServicePendingDeletionFromAD
AADConnectEnabledOnlineActiveDirectoryDisabledUser
AADConnectEnabledOnlineActiveDirectoryDisabledUserPendingAttributeRemovalFromAD
AADConnectEnabledOnlineSfBUser
AADConnectEnabledOnlineSfBUserWithTeamsLicense
AADConnectEnabledOnlineTeamsUser
AADConnectEnabledOnlineTeamsUserWithMCOValidationError
AADConnectEnabledOnlineUserNotLicensedForService
AADConnectEnabledOnlineUserNotLicensedForServicePendingAttributeRemovalFromAD
HybridOnlineSfBUser
HybridOnlineSfBUserWithTeamsLicense
HybridOnpremActiveDirectoryDisabledUser
HybridOnpremSfBUser
HybridOnpremSfBUserWithMCOValidationError
HybridOnpremSfBUserWithTeamsLicense
HybridOnpremSfBUserWithTeamsLicenseWithMCOValidationError
HybridOnpremUserNotLicensedForService
PureOnlineActiveDirectoryDisabledUser
PureOnlineActiveDirectoryDisabledUserPendingAttributeRemovalFromAD
PureOnlineApplicationInstance
PureOnlineSfBUserWithTeamsLicense
PureOnlineTeamsOnlyUser
PureOnlineTeamsUser
PureOnlineUserNotLicensedForService
PureOnlineUserNotLicensedForServiceFailedPublishingToAAD
PureOnlineUserNotLicensedForServicePendingAttributeRemovalFromAD

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.