extension properties displayed in graph but not in powershell - powershell

i have synced an extension "departmentnumber" to azure ad.
I can see the output in ms graph, when i do the following: https://graph.microsoft.com/v1.0/users/*************************?$select=extension_450c0e26a8a440748e1e4f*******_departmentNumber
The problem is, that I can not see it in powershell. There is only a blank field as you can see here:
As I understood it, there should be another row with this output: extension_450c0e26a8a440748e1e4f*******_departmentNumber
Where is my mistake?
purpose: i want to get an export, where every user is listed with the assigned licences and the departmentnumber which will get added in onprem AD. If anyone has a better solution - please tell me
Thx for yourt help guys!! :)

Related

PowerShell - Microsoft.graph.intune - Get-DeviceManagement_DetectedApps - List all apps, not just first 50

I'm wondering if anyone can help?
I am running the cmdlet Get-DeviceManagement_DetectedApps in the microsoft.graph.intune module and getting back this result
Get-devicemanagement_detectedapps output
I have a count of 6975 apps but in the value array I only am getting 50 apps. I can't figure out how to display all the apps or move onto the next page of data. Every paramter I put in doesn't change a thing and the property #odata.nextLink is always showing:
https://graph.microsoft.com/v1.0/deviceManagement/detectedApps?$skip=50
Does anyone know how I get all the apps to show?
I have tried changing all the parameters to see if anything changes and nothing does
Thanks for your help

VS860016: Could not find subject in the backing domain. This value came from the parameter 'originId'

I'm working with the Azure DevOps API and Microsoft Graph API. This is the issue:
I create an AAD (azure active directory) group, then, I create a new ADO (AzureDevOps) project in a XXX organization. Once the project is created I add the AAD group created at the beginning into the ADO project groups.
It works fine, but sometimes I get an error when I try to add the AAD group into the project permissions groups (the image above), the error is the same as the title: "VS860016: Could not find subject in the backing domain. This value came from the parameter 'originId'."
The first solution was creating a retry function, but it doesn't ever work, so, I'm trying to figure out was is the best approach to resolve the problem, I tried to find some information about this error, but not exists info regarding this.
Do you know the reason for the issue?
Creating a queue for this could work, but I'm looking for a workaround.
Tested in my Environment able to add the AAD group into the project permissions groups.
Not Sure why you are getting the error, Even there is no document to troubleshoot for this Error. Would Suggest you please reach out to Azure Support Team for Solution and Root Cause.

Remove Users from a Teams Call Queue

I have a quick question and I wander if you can help. Does any of you know how to remove a user from a teams call queue using Powershell? For some reason I'm not able to do it through Admin Center.
On admin center I can see 4 items added to the queue meaning that my 4 users have been assigned but I have all options disabled and it doesn't let me to remove users. Has this every happened to any of you?
Thank you very much in advance for your help.
Thank you very much for the help
Tomas Gonzales
if you have already created call queue setup. Please get the information of call queue and use set command to reset the user list.
getting information: https://learn.microsoft.com/en-us/powershell/module/skype/get-cscallqueue?view=skype-ps
Setting user list using set cmdlet: https://learn.microsoft.com/en-us/powershell/module/skype/set-CsCallQueue?view=skype-ps

Creating AD users trough Powershell activity in UiPath

Im trying to create AD users with Invoke Powershell activity.
Unfortunately I am stuck with a Parameter problem.
The parameter “Name” gives following error: “The Object name has bad syntax”
The funny thing is, if I run the same powershell command directly into powershell console, I get no error.
But when the robot runs it. I get parameter error.
See screenshots for clarification.
I really hope someone can crack this code, because I am pretty stuck here.
-Christian
Maybe it's too many " chars in name field? Try to change it to "Robot5" for example.
-
Egor

The remote name could not be resolved: 'graph.facebook.com'

I'm using the FaceBook C# SDK for the first time.
Since I have a simple application I want to create I have picked up the sample Azure MVC application and modified it to point at my facebook application instance and secret as per the configuraiton guidance.
I want to retrieve a months status messages so I need authorisation which has worked thanks to CanvasAuthorize(Perms = "user_about_me") attribute.
However now when I goto the about view I get an error in the controller first:
dynamic result = fbApp.Get("me");
The actual error is listed as:
The remote name could not be resolved: 'graph.facebook.com'
Can anyone help me identify what I am doing wrong?
Many thanks,
_David
That sounds like a temporary connectivity issue. The server (or your computer) is having trouble resolving http://graph.facebook.com. Try to going to http://graph.facebook.com/microsoft in your browser and see what happens.
Make sure that you have the correct fb_key and fb_secret values. In my case I have added them in the web config file but when I read the values I have given a wrong name to retrieve. client_id and client_secret values were not set. As a result this error popped out.