Skip to content

Commit

Permalink
On prem sync warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey committed May 14, 2024
1 parent 5029187 commit e2bf01e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/views/identity/administration/EditUser.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,12 @@ const EditUser = () => {
link for more information.
</CCallout>
)}
{user?.onPremisesSyncEnabled === true && (
<CCallout color="warning">
Warning! This user Active Directory sync enabled. Edits should be made from a Domain
Controller.
</CCallout>
)}
{postResults.isSuccess && (
<CCallout color="success">{postResults.data?.Results}</CCallout>
)}
Expand All @@ -180,7 +186,7 @@ const EditUser = () => {
</CCol>
</CRow>
)}
<CRow>
<CRow className="mb-3">
<CCol lg={6} xs={12}>
<CippContentCard title="Account Details" icon={faEdit}>
{userIsFetching && <CSpinner />}
Expand Down
18 changes: 16 additions & 2 deletions src/views/identity/administration/OffboardingWizard.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react'
import { CCallout, CCol, CListGroup, CListGroupItem, CRow, CSpinner } from '@coreui/react'
import { CCallout, CCol, CListGroup, CListGroupItem, CRow, CSpinner, CTooltip } from '@coreui/react'
import { Field, FormSpy } from 'react-final-form'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faExclamationTriangle, faTimes, faCheck } from '@fortawesome/free-solid-svg-icons'
Expand Down Expand Up @@ -296,7 +296,21 @@ const OffboardingWizard = () => {
className="d-flex justify-content-between align-items-center"
>
<h5 className="mb-0">Selected User:</h5>
{user.value}
<span>
{users.find((x) => x.userPrincipalName === user.value)
.onPremisesSyncEnabled === true ? (
<CTooltip content="This user is AD sync enabled, offboarding will fail for some steps">
<FontAwesomeIcon
icon="triangle-exclamation"
color="yellow"
className="me-2"
/>
</CTooltip>
) : (
''
)}
{user.value}
</span>
</CListGroupItem>
))}
</CListGroup>
Expand Down

0 comments on commit e2bf01e

Please sign in to comment.