Announcements
I am a student worker at a University and they want me to build a form (See attachment). The form is for us Admins to fill out to update our devices (computers) in AD through Azure... or Intune, if there is accessibility through PowerApps for it. How would I go about coding my app to do this? It doesn't seem clear to me how to move this info (which is shot out to a SharePoint) to be used to update our Azure AD.
@jnernst ,
You have at disposal a connector to update users info in Azure AD. Please read this - https://docs.microsoft.com/en-us/connectors/azuread/
I don't recognize as Active Directory attributes some of your form fields (like Room Name, ComputerName, Model). Are custom Azure AD attributes ?
If you have already the form created, use on OnSelect property of the Submit button:
AzureAD.UpdateUser( "userprincipalname", { department:DepartamentTextInput.Text, officeLocation:BuildingComboBox.Selected.Value } )
Hope it helps !
Right, sorry for not elaborating on the other fields. I was going to concatenate the strings of the other "questionable" fields to make a description for the object in SharePoint. I will try plug n playing with the hint you gave me. I will be back to report on how it went.
Thanks,
Josh
Thank you for your help so far. I was expecting it to work... but the syntax is coming back as invalid... Expecting Text type data and is receiving Error data instead... even if I have the suffix as .Text
Is this an issue because of the Combo box? Still new to programming with PowerApps, my apologies if this response seems naïve.
There is a problem with my formula, because the department control is also a combobox.
AzureAD.UpdateUser( "userprincipalname", { department:DepartamentComboBox.Selected.Value, officeLocation:BuildingComboBox.Selected.Value } )
Can you share please the items property formula for Building Combobox and Department ComboBox ?
The usage of combo box was not necessary so I had made them into drop downs... Still not having much luck. Still telling me it is expecting a "text" type and I'm using an "error" type. Any clue on what to do in response to this error?
I decided to go ahead and show, in more detail, what exactly is happening. On the top, I have a search (via email) for users. Below that is the actually selection, it's a drop down. Below that is the computer name (is exactly what it sounds and looks like) Below that I have a drop down for building choices with the choices already mapped from SharePoint. Room number, which will go towards location. Department, a drop down with choices from SharePoint. And the model which will go towards the details (in SharePoint)... Which should end up with this format
(User-Model-Location). And the Submit button... which we are trying to figure out just how to make that work out.
buildingcombobox and departmentcombobox are generic names to guide you where to look. Use the names of the controls from app.
Sorry for being gone for so long... Had lots of snow. So I took a trim of my print screen to show you... sorry it's so low resolution, only way I could get a trim of it.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 395 Super User 2026 Season 2
Mohsin Ali 328
WarrenBelz 260 Most Valuable Professional