> For the complete documentation index, see [llms.txt](https://ajuda.rnp.br/cafe/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ajuda.rnp.br/cafe/idp-cafe/faq/integrando-o-office-365-com-shibboleth-idp.md).

# Integrando o Office 365 com Shibboleth IDP

A configuração ocorrerá em duas etapas:

Configuração no Shibbboleth IDP

{% content-ref url="/pages/F1xwLX5B7tHXbo9H4n2Z" %}
[Office 365 - Configuração no Shibbboleth IDP](/cafe/idp-cafe/faq/integrando-o-office-365-com-shibboleth-idp/office-365-configuracao-no-shibbboleth-idp.md)
{% endcontent-ref %}

Configuração no Microsoft Entra

{% content-ref url="/pages/rfU0CTOCoaMVR9C8dLao" %}
[Office 365 - Configuração no Microsoft Entra](/cafe/idp-cafe/faq/integrando-o-office-365-com-shibboleth-idp/office-365-configuracao-no-microsoft-entra.md)
{% endcontent-ref %}

## Dicas

1. Testar a liberação de atributos

```bash
/opt/shibboleth-idp/bin/aacli.sh -n <NOME-USUARIO> -r urn:federation:MicrosoftOnline --saml2
```

2. Exibir configurações da autenticação federada.

```powershell
Get-MsolDomainFederationSettings -DomainName $dom
```

3. Retornar para autenticação gerenciada

```powershell
Set-MsolDomainAuthentication -DomainName $dom -Authentication Managed
```

4. Criar usuário

```powershell
New-MsolUser `
  -UserPrincipalName usuario@instituicao.edu.br `
  -ImmutableId SubstituirPeloValorDoNameID `
  -DisplayName "Nome Sobrenome" `
  -FirstName Nome `
  -LastName Sobrenome `
  -AlternateEmailAddresses "email-alternativo@provedor.com.br" `
  -UsageLocation "BR"
```

O valor a ser utilizado como **ImmutableId** é obtido a partir do **NameID**. Para obter esse valor execute o comando descrito em **Dicas 1**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ajuda.rnp.br/cafe/idp-cafe/faq/integrando-o-office-365-com-shibboleth-idp.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
