mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 11:34:26 +00:00
fa9f581d56
* chore: move to new org * logging * fix: org rename caos -> zitadel Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
19 lines
391 B
Go
19 lines
391 B
Go
package management
|
|
|
|
import (
|
|
"context"
|
|
|
|
mgmt_pb "github.com/zitadel/zitadel/pkg/grpc/management"
|
|
)
|
|
|
|
func (s *Server) GetIAM(ctx context.Context, _ *mgmt_pb.GetIAMRequest) (*mgmt_pb.GetIAMResponse, error) {
|
|
iam, err := s.query.Instance(ctx)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &mgmt_pb.GetIAMResponse{
|
|
GlobalOrgId: iam.GlobalOrgID,
|
|
IamProjectId: iam.IAMProjectID,
|
|
}, nil
|
|
}
|