web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Question about Azure AD
Power Apps
Unanswered

Question about Azure AD

(0) ShareShare
ReportReport
Posted on by 166

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.

 

 

 

Power apps AD pic.PNG
Categories:
  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @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 !

  • jnernst Profile Picture
    166 on at

    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

  • jnernst Profile Picture
    166 on at

    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.

  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @jnernst ,

    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 ?

  • jnernst Profile Picture
    166 on at

    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?

  • jnernst Profile Picture
    166 on at

    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.

    More info.PNG
  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @jnernst ,

    buildingcombobox and departmentcombobox are generic names to guide you where to look. Use the names of the controls from app.

  • jnernst Profile Picture
    166 on at

    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.

    q.PNG

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard