dushyantgill / aadgraphpowershell Goto Github PK
View Code? Open in Web Editor NEWCmdlets in a PowerShell script module that access Windows Azure AD Graph APIs
Cmdlets in a PowerShell script module that access Windows Azure AD Graph APIs
Hi,
When I run the command Get-AADUser on our tenant I get too much results. On the https://graphexplorer.cloudapp.net I get an odata.nextLink. Can the command show this too?
I see in AADGraphUser.psm1, this is the backbone of the Get-AADUser function:
Get-AADObject -Type "users"
However, the attribute I'm interested in (thumbnailPhoto) doesn't seem to be included by default.
With Get-ADUser, I would use the "-Properties" parameter to include the thumbnailPhoto attribute:
Get-ADUser "matt.wilson" -Properties thumbnailPhoto
Is there a similar method we can use to achieve the same result with AADGraph? NOTE: Keep in mind that once I'm able to GET the thumbnailPhoto attribute, I'll next want to be able to SET it. ;-)
Thanks for your help!
Matt
I'm not very familiar with GitHub, and I'm pretty decent with PowerShell. I didn't see a Wiki, so I started by simply downloading the project as a ZIP, then running .\Install-AADGraphModule.ps1.
I received the following output:
PoSh T:\Scripts\O365\AADGraphPowerShell> .\Install-AADGraphModule.ps1
Creating module directory under C:\Users\matt.wilson\Documents\WindowsPowerShell\Modules
Installing Active Directory Authentication Library Nuget in C:\Users\matt.wilson\Documents\WindowsPowerShell\Modules\AA
DGraph\Nugets
Downloading nuget.exe from http://www.nuget.org/nuget.exe
Copying module files to the module directory
Import-Module : The 'C:\Users\matt.wilson\Documents\WindowsPowerShell\Modules\AADGraph\AADGraph.psd1' module cannot be
imported because its manifest contains one or more members that are not valid. The valid manifest members are ('ModuleT
oProcess', 'NestedModules', 'GUID', 'Author', 'CompanyName', 'Copyright', 'ModuleVersion', 'Description', 'PowerShellVe
rsion', 'PowerShellHostName', 'PowerShellHostVersion', 'CLRVersion', 'DotNetFrameworkVersion', 'ProcessorArchitecture',
'RequiredModules', 'TypesToProcess', 'FormatsToProcess', 'ScriptsToProcess', 'PrivateData', 'RequiredAssemblies', 'Mod
uleList', 'FileList', 'FunctionsToExport', 'VariablesToExport', 'AliasesToExport', 'CmdletsToExport'). Remove the membe
rs that are not valid ('RootModule'), then try to import the module again.
At T:\Scripts\O365\AADGraphPowerShell\Install-AADGraphModule.ps1:28 char:14
I'll continue to review the project and look for install tips/pre-reqs, but any info you can provide would be helpful and greatly appreciated.
I'm hoping this project can help me manipulate our thumbnailPhoto attributes in Azure AD much like the Import-RecipientDataProperty and Export-RecipientDataProperty EMS cmdlets. Thoughts on that task would be appreciated, too.
Matt
Executing Install-AADGraphModule.ps1 throws following error.
Downloading nuget.exe from http://www.nuget.org/nuget.exe
Unable to find package 'Microsoft.IdentityModel.Clients.ActiveDirectory'.
Copying module files to the module directory
WARNING: The names of some imported commands from the module 'AADGraph' include unapproved verbs
that might make them less discoverable. To find the commands with unapproved verbs, run the
Import-Module command again with the Verbose parameter. For a list of approved verbs, type
Get-Verb.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.