Quantcast
Channel: Azure Active Directory forum
Viewing all 16000 articles
Browse latest View live

Adconnect Synchronization

$
0
0

Hello ,

 i have created in office 365 a user x@contoso.com (different password in local AD )

the user is already exit in our Local AD this user  x@contoso.com  (has different password in office 365 )

if i install Adconnect with ADFS plan ,the domain will be converted to the federate domain .

what will be happen to this user after synchronization ? 

and what be happened  for other users not synchronized from AD to office 365  ?

Regards


Getting 403: "Insufficient privileges to complete the operation." when attempting to query Graph API

$
0
0
We've migrated to a new tenant where I work. As such we are trying to re-add our applications into Azure AD. We have a documented process that has worked in the past in order to add applications for our MVC and WebAPI projects. However, we've been getting errors when attempting to query the Graph API. In the example application we've used the code from here to create a custom authorize attribute that allows us to group based authentication. After debugging the /Utilities/GraphHelper.cs we've determined that the application is getting a Status Error of 403 with a message that states: "Insufficient privileges to complete the operation."

After doing a bit of research I was able to replicate the Authentication process in Fiddler.

Action Method: POST
URL: https://login.windows.net/[tennantName]/oauth2/token?api-version=1.0
Header Block: 

Content-Type: application/x-www-form-urlencoded 
Host: login.windows.net
Content-Length: 180
Expect: 100-continue 
Connection: Keep-Alive

RequestBody:

grant_type=client_credentials&resource=https%3a%2f%2fgraph.windows.net&client_id=[clientId]&client_secret=[urlencoded client secret]

I get back a token from this request and then attempt to query the federated directory from the graphapi again with fiddler:

Action Method: GET
URL: https://graph.windows.net/[federated domain]/directoryObjects/{group-guid}
Header Block:

Content-Type: application/json
Host: graph.windows.net
Authorization: Bearer [token from login response]


I receive and 403 response with the body:
{"odata.error":{"code":"Authorization_RequestDenied","message":{"lang":"en","value":"Insufficient privileges to complete the operation."}}}

In Azure Active Directory, Under App Registrations for this application the manifest has been modified by a user with Company Admin Role for:

"groupMembershipClaims": "SecurityGroup", ...
"oauth2AllowImplicitFlow": true, 

An Application Key was generated that is used for fetching a token to access the graph API.
Under Required Permissions for Application Permissions Read directory data, and Read all hidden memberships were checked by a user with Company Admin Role.

I'm out of ideas everything should be working. 

Get user principle identifier known as "Subject" for AD user

$
0
0

Hi,

Was wondering, if it is actually possible to retrieve a "Subject" value that identifies user principle in Azure AD using AD Graph API? This value can be retrieved through SAML and JWT tokens by authenticating individually. (refer to property called sub: https://azure.microsoft.com/en-us/documentation/articles/active-directory-token-and-claims/)

I wanted to get the identifier using an api call to AD Graph API (https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/users-operations Get a user operation) and have it in an SAML format, is this possible?

Help would be appreciated.

Office 365 app authorization - Redirect URI issue

Error: We don't have a valid access token

$
0
0

From Andrea Turli @turlinux via Twitter
 
@AzureSupport following bit.ly/1RikATP I get `Error: We don't have a valid access token. Please run "azure login" again`, ideas? Trying azure login from azue cli for os x

https://twitter.com/turlinux/status/704627455156490241
 
Thanks,
@AzureSupport


Thiene Schmidt

Azure AD Attributes

$
0
0

hello ,

how to show the  list of  User Azure Ad attributes  using MSOL ?

regards,

Azure AD Roles Operation

$
0
0

(a) Is it possible to create a custom directory role in Azure AD that can be assigned to users ?

(b) The Microsoft Graph API documentation - https://graph.microsoft.io/en-us/docs/api-reference/v1.0/resources/directoryrole specifies it is possible to Update and Delete a Directory Role. Unfortunately the documentation Page does not load. Can someone from Microsoft fix it ? Does anyone know the REST Endpoints used to perform this operation ?

Powershell Azure AD Preview - Creating New-AzureADUser password profile issues

$
0
0

I have a script to create a batch of 100 users in Azure AD using the new AzureADPreview (2.0.0.7). What I can not seem to find or figure out is how to create the password profile that is required. So my question is, in PowerShell how do I properly build the PasswordProfile object to use for New-AzureADUser?

Thanks for the help!




Simulate Synchronization with ADconnect

$
0
0

Hello ,

i heard that there is a tool to simulate the conflict Synchronization between onpremise Ad and Azure Ad .

Actually we are preparing to use Adconnect for Sycnhronization .

could you please let me know the name of this tool please .

Regards




Error with Disable-ADSyncExportDeletionThreshold

$
0
0

Hi, 

I receive the following error message when trying to execute Disable-ADSyncExportDeletionThreshold:

Disable-ADSyncExportDeletionThreshold : Could not load type
'Microsoft.Azure.ActiveDirectory.Client.Framework.Tracer' from assembly
'Microsoft.Azure.ActiveDirectory.Client.Framework, Version=1.1.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
At line:1 char:1
+ Disable-ADSyncExportDeletionThreshold
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ReadError: (Microsoft.Ident...letionThreshold:Di
   sableADSyncExportDeletionThreshold) [Disable-ADSyncExportDeletionThreshold
  ], TypeLoadException
    + FullyQualifiedErrorId : Could not load type 'Microsoft.Azure.ActiveDirec
   tory.Client.Framework.Tracer' from assembly 'Microsoft.Azure.ActiveDirecto
  ry.Client.Framework, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf
 3856ad364e35'.,Microsoft.IdentityManagement.PowerShell.Cmdlet.DisableADSyn
cExportDeletionThreshold


Ivan de Sousa

Office 365 REST API - Transfer data of a deleted or to-be-deleted user

$
0
0
Hello! Is there an Office 365 REST API that lets us backup or transfer a deleted user's data to the Admin or some other user? It would be nice to have it before we hard delete the user.

MIM to work with multi-factor authentication

$
0
0

Hi All,

I am trying to integrate the MIM SSPR with the Azure MFA. I created a new MFA service providers and downloaded the SDK file to get the LICENSE_KEY, GROUP_KEY, CERT_PASSWORD.

I performed all the steps given in the below link

https://docs.microsoft.com/en-us/microsoft-identity-manager/deploy-use/working-with-self-service-password-reset

But still during the OTP gate OTP is not sent and I am getting the following error in the event logs Azure MFA: Authentication Failed. Call Status='', ErrorID='0'. Any idea on this error?

IPagedCollection - Change Page Size in AAD Graph Client Library C#

$
0
0

Hi,

I am using the AAD Graph Client Library to query the users from AAD as follows:

ActiveDirectoryClient activeDirectoryClient = null;

... get token for application ...

IPagedCollection<IUser> usersPage = activeDirectoryClient.Users.ExecuteAsync().Result;

for the next page i am using the usersPage.GetNextPageAsync() call.

These calls (ExecuteAsync and GetNextPageAsync) give me 100 users per page (by default). I would like to make this a configurable number.

How can i achieve this using Graph Client Library in C#? 

Thanks and Regards,

Kapil

Azure AD joined Windows 10 PC and password changes

$
0
0

Hey,

I have a customer which has Azure AD joined Windows 10 devices. They asked me if it's possible to force their end users to change their current password to Office 365 and Windows 10 devices.

We temporarily modified the time settings of their policy for password renewal to be 5d and 14d. This worked out and all the users successfully managed  to change their current passwords to new ones. The users are now fine with the Office 365 and the services but they cannot use the same password for logging in the Windows 10 devices. 

I always thought that the Office 365 password should be the same one used in Azure AD, isn't it the Azure AD which is actually behind the whole O365 authentication system?

Have I got it totally wrong or is there something malfunctioning here?

Web Forms Authentication with B2C

$
0
0

I'm trying to add authentication using Azure AD B2C to a web forms app. Unfortunately, every tutorial I've found is for MVC, except for this web forms tutorial: http://www.cloudidentity.com/blog/2014/07/24/protecting-an-asp-net-webforms-app-with-openid-connect-and-azure-ad/. Using that tutorial, I've added this code to my startup.auth.cs:


publicpartialclassStartup{// For more information on configuring authentication, please visit http://go.microsoft.com/fwlink/?LinkId=301883publicvoidConfigureAuth(IAppBuilder app){ app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType); app.UseCookieAuthentication(newCookieAuthenticationOptions()); app.UseOpenIdConnectAuthentication(newOpenIdConnectAuthenticationOptions{ClientId="my-client-id",Authority="https://login.microsoftonline.com/my-tenant"});}}



And that is working fine. However, I need to have sign up functionality as well as just sign-in, but I can't figure out how to do it, since everything I've found is for MVC, and I'm not sure how to convert that to what I need. I've tried adding code such as this:


app.UseOpenIdConnectAuthentication(CreateOptionsFromPolicy(_SignUpPolicyId));
app.UseOpenIdConnectAuthentication(CreateOptionsFromPolicy(_ProfilePolicyId));
app.UseOpenIdConnectAuthentication(CreateOptionsFromPolicy(_SignInPolicyId));

And that creates three more buttons on the login page, but clicking on them just gives a 404 error and no extra information, so I don't know how to make that work, either, or even if I'm headed in the right direction. I've never worked with B2C before, so if anyone has any suggestions/has done this sort of thing for web forms, I'd really appreciate some tips or sample code.


Government Native Applications

$
0
0

I'm trying to connect a native application to an Active Directory setup within the Azure Government Portal.  It's complaining about a client_secret.  I created a working portion of this setup within the standard Azure Portal, but used a Native Application instead of a Web Application.  Reading online, the way to get around this is either to acquire tokens from my web application (I have a native app, not a web app), or create a new application within the portal to be a Native Application.  This would more closely match my setup within the standard portal.  However, I don't see how to setup an application for my Active Directory with the type of "Native Application".

How do I setup a Native Application for my Active Directory within the Azure Government Portal?

Certificate based authentication into a daemon Windows service

$
0
0

Hello!

We are developing a windows service application, it uses Microsoft Graph in order to do some operations into a domain: CRUD users, Calendar, Mail, OneDrive. 

We can do those operations correctly using interactive authentication/Authorization with an administrator user to the Azure AD domain asociated to the Office365 account.


But we need to do this in daemon mode, by using a certificate, like  this example:  https://github.com/Azure-Samples/active-directory-dotnet-daemon-certificate-credential

We  try to do this using portal.azure.com, creating a certificate and modifying Manifesto (inserting appropiate keys into "keyCredentials").
But after obtain an Access Token, when doing the request to operation (for example, send a mail) the response obtained was " Access is denied. Check credentials and try again."

 We don't have an Azure subscription, only an Office365 for developer subscription. The final product must work using an Office365 Education license.

Any suggestions?

Azure portal website will not stop showing a 'session expired' modal dialog

$
0
0
I have a valid Azure work subscription.  Whenever I log into the azure portal, the browser redirects a few times, then shows the a modal  message in the menu stating "

Your session expired

We saved your work."

I cannot do anything on the page other than press a 'reload' button, which takes me back to the same place.  

I can still use the old azure site (manage.windowsazure.com) with the same work login credentials.  I have tried multiple browsers and multiple PCs.

PS.  This Forum input page forces me to select a specific Azure forum, and annoyingly, a general Auzre website category is not an option.

Adding Microsoft Account via PowerShell or C#

$
0
0

Folks,

Does anyone know a way in which we can add Microsoft Accounts into Azure Active Directory via PowerShell or C#?

This feature is available in the portal however we need to be able to programmatically complete this task.

Thanks,

Lyon Till

Adconnect Synchronization

$
0
0

Hello ,

 i have created in office 365 a user x@contoso.com (different password in local AD )

the user is already exit in our Local AD this user  x@contoso.com  (has different password in office 365 )

if i install Adconnect with ADFS plan ,the domain will be converted to the federate domain .

what will be happen to this user after synchronization ? 

and what be happened  for other users not synchronized from AD to office 365  ?

Regards

Viewing all 16000 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>