normalizeUserId strips the "d-{directoryId}." prefix from Identity Center user IDs so that logging user IDs match the short UUID format used in user-report CSVs.
(userId string)
| 434 | // normalizeUserId strips the "d-{directoryId}." prefix from Identity Center user IDs |
| 435 | // so that logging user IDs match the short UUID format used in user-report CSVs. |
| 436 | func normalizeUserId(userId string) string { |
| 437 | if idx := strings.LastIndex(userId, "."); idx != -1 && strings.HasPrefix(userId, "d-") { |
| 438 | return userId[idx+1:] |
| 439 | } |
| 440 | return userId |
| 441 | } |
| 442 | |
| 443 | var ExtractQDevLoggingDataMeta = plugin.SubTaskMeta{ |
| 444 | Name: "extractQDevLoggingData", |
no outgoing calls
no test coverage detected